- 
  StackOverflow 文件
- 
  netsuite 教程
- 
  從相關記錄中查詢資料
- 
  2.0 查詢多個欄位
require(["N/search", "N/currentRecord"], function (s, cr) {
    /**
     * An example of N/search#lookupFields to retrieve multiple fields from a related record
     */
    (function () {
        var record = cr.get();
        // Get the Sales Rep record ID
        var repId = record.getValue({
            "fieldId": "salesrep"
        });
        // Retrieve the email address from the associated Sales Rep
        var repData = s.lookupFields({
            "type": "employee",
            "id": repId,
            "columns": ["email", "firstname"]
        });
        console.log(repData);
        console.log(repData.firstname + "'s email address is " + repData.email);
    })();
});