Robert Vice
03/31/2023, 10:14 PMpackagefedex
I see in our Celigo Flow, it has the "Replace All Lines" for all the carrier options we have. And in the record I am working with, I can see it's pre-populated with one package of type pacakgefedex
that I then remove and attempt to create again with
const packageLine = sourceRecord.selectNewLine({
sublistId: 'packagefedex'
});
packageLine.setValue({
fieldId: packageweightfedex,
value: 7
});
packageLine.setText({
fieldId: packagetrackingnumberfedex,
text: 'F1234567890'
});
packageLine.commitLine({
sublistId: packageType.type
});
sourceRecord.commitLine({
sublistId: packageType.type
});
Will give it one more go using just plain old weight
for the field name, but upon inspecting a record that's already been filled, I see the fieldId's as in the code above.
Also, am I possibly mixing up the commitLine on the packageLine?battk
03/31/2023, 11:31 PMbattk
03/31/2023, 11:33 PMRobert Vice
04/01/2023, 1:09 AMRobert Vice
04/01/2023, 1:10 AMRobert Vice
04/01/2023, 1:21 AMRobert Vice
04/01/2023, 1:40 AMbattk
04/01/2023, 1:50 AMRobert Vice
04/01/2023, 1:51 AMRobert Vice
04/01/2023, 1:52 AM{
"type": "error.SuiteScriptError",
"name": "UNEXPECTED_ERROR",
"message": "Unexpected Error",
"stack": [
"UNEXPECTED_ERROR: Unexpected Error",
" at Object.createError [as nlapiCreateError] (<https://5182243-sb1.app.netsuite.com/javascript/suitescript/2.0/client/N.js?NS_VER=2022.2&minver=17&buildver=31005:828:16>)",
" at Object.createError [as create] (<https://5182243-sb1.app.netsuite.com/javascript/suitescript/2.0/client/N.js?NS_VER=2022.2&minver=17&buildver=31005:2088:39>)",
" at myCallback (<https://5182243-sb1.app.netsuite.com/javascript/suitescript/2.0/client/N.js?NS_VER=2022.2&minver=17&buildver=31005:2309:49>)",
" at p.onload (<https://5182243-sb1.app.netsuite.com/assets/suitescript_bootstrap/1101104453.js?NS_VER=2022.2&minver=17:14:423>)"
],
"cause": {
"stack": "UNEXPECTED_ERROR: Unexpected Error\n at c (<https://5182243-sb1.app.netsuite.com/assets/suitescript_bootstrap/1101104453.js?NS_VER=2022.2&minver=17:12:425>)\n at p.onload (<https://5182243-sb1.app.netsuite.com/assets/suitescript_bootstrap/1101104453.js?NS_VER=2022.2&minver=17:14:377>)",
"message": "Unexpected Error",
"name": "UNEXPECTED_ERROR",
"userFacing": true
},
"notifyOff": false,
"userFacing": true
}
Robert Vice
04/01/2023, 1:53 AMweight
error anymore.Robert Vice
04/01/2023, 1:54 AMbattk
04/01/2023, 1:56 AMRobert Vice
04/01/2023, 1:58 AMmichoel
04/02/2023, 11:02 AMmichoel
04/02/2023, 11:02 AMRobert Vice
04/03/2023, 6:54 PMRobert Vice
04/06/2023, 7:30 PMSwitching the shipping method to another carrier is an unsupported operation, because it requires reloading the item fulfillment form for that carrier.
battk
04/06/2023, 8:15 PMbattk
04/06/2023, 8:17 PMRobert Vice
04/06/2023, 8:18 PMbattk
04/06/2023, 8:19 PMRobert Vice
04/06/2023, 8:20 PMRobert Vice
04/06/2023, 8:21 PMRobert Vice
04/06/2023, 8:21 PM