Php
10/09/2019, 11:05 AMvar salesOrder = record.create({
type: record.Type.SALES_ORDER,
isDynamic: true,
defaultValues: Date.now().toString
});
salesOrder.setValue({ fieldId: 'shipcarrier', value: "nonups" });
salesOrder.setValue({ fieldId: 'shipmethod', value: nonUpsMethodsList[data["shipping_method"]["#text"]] });
battk
10/09/2019, 11:08 AMPhp
10/09/2019, 11:33 AMPhp
10/09/2019, 11:33 AMNElliott
10/09/2019, 11:33 AMbattk
10/09/2019, 11:34 AMbattk
10/09/2019, 11:35 AMPhp
10/09/2019, 11:35 AMbattk
10/09/2019, 11:35 AMNElliott
10/09/2019, 11:35 AMbattk
10/09/2019, 11:36 AMbattk
10/09/2019, 11:36 AMNElliott
10/09/2019, 11:37 AMPhp
10/09/2019, 11:37 AMPhp
10/09/2019, 11:38 AMNElliott
10/09/2019, 11:38 AMbattk
10/09/2019, 11:41 AMPhp
10/09/2019, 11:42 AMbattk
10/09/2019, 11:42 AMbattk
10/09/2019, 11:42 AMbattk
10/09/2019, 11:43 AMPhp
10/09/2019, 11:51 AMbattk
10/09/2019, 11:59 AMsalesOrder.getField({fieldId: 'shipmethod'}).getSelectOptions()
battk
10/09/2019, 11:59 AMPhp
10/09/2019, 12:34 PMNickSuite
10/09/2019, 12:37 PMNickSuite
10/09/2019, 12:37 PMPhp
10/09/2019, 12:38 PM{
"type": "error.SuiteScriptError",
"name": "USER_ERROR",
"message": "Please choose a shipping method to account for the shipping cost.",
"stack": [
"anonymous(N/serverRecordService)",
"createSalesOrder(/SuiteScripts/Webhive/tj_afg_soap_getsalesOrderListRequest.js:433)",
"getSalesOrderInfo(/SuiteScripts/Webhive/tj_afg_soap_getsalesOrderListRequest.js:137)",
"Apicall(/SuiteScripts/Webhive/tj_afg_soap_getsalesOrderListRequest.js:831)"
],
"cause": {
"type": "internal error",
"code": "USER_ERROR",
"details": "Please choose a shipping method to account for the shipping cost.",
"userEvent": "beforeload",
"stackTrace": [
"anonymous(N/serverRecordService)",
"createSalesOrder(/SuiteScripts/Webhive/tj_afg_soap_getsalesOrderListRequest.js:433)",
"getSalesOrderInfo(/SuiteScripts/Webhive/tj_afg_soap_getsalesOrderListRequest.js:137)",
"Apicall(/SuiteScripts/Webhive/tj_afg_soap_getsalesOrderListRequest.js:831)"
],
"notifyOff": false
},
"id": "",
"notifyOff": false,
"userFacing": false
}
NickSuite
10/09/2019, 12:39 PMPhp
10/09/2019, 12:39 PMNickSuite
10/09/2019, 12:39 PMPhp
10/09/2019, 12:40 PMNickSuite
10/09/2019, 12:41 PMPhp
10/09/2019, 12:42 PMPhp
10/09/2019, 12:43 PMNickSuite
10/09/2019, 12:43 PMPhp
10/09/2019, 12:47 PMPhp
10/09/2019, 12:47 PMNickSuite
10/09/2019, 1:02 PMPhp
10/09/2019, 1:09 PMNickSuite
10/09/2019, 1:10 PMPhp
10/09/2019, 1:14 PMPhp
10/09/2019, 1:14 PMNickSuite
10/09/2019, 1:15 PMNickSuite
10/09/2019, 1:18 PMPhp
10/09/2019, 1:23 PMPhp
10/09/2019, 1:29 PMPhp
10/09/2019, 2:23 PM