ec
12/31/2025, 2:52 PMCeligo AI
12/31/2025, 2:52 PMAI generated answer (using internal Slack threads):To add lines to the
fedexpackage sublist on item fulfillment when integrated shipping is turned on, you can use SuiteScript 1.0. Here is a sample code snippet based on the conversations provided:
javascript
var record = nlapiLoadRecord('itemfulfillment', fulfillmentId);
// Add a new line to the 'fedexpackage' sublist
record.selectNewLineItem('fedexpackage');
// Set the values for the new line
record.setCurrentLineItemValue('fedexpackage', 'packageweightfedex', 7);
record.setCurrentLineItemValue('fedexpackage', 'packagetrackingnumberfedex', 'F1234567890');
// Commit the new line to the sublist
record.commitLineItem('fedexpackage');
// Save the record
var id = nlapiSubmitRecord(record);
This script loads an existing item fulfillment record, adds a new line to the fedexpackage sublist, sets the values for the packageweightfedex and packagetrackingnumberfedex fields, commits the new line to the sublist, and then saves the record.
Please note that you need to replace fulfillmentId with the actual ID of the item fulfillment record you want to update.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
12/31/2025, 2:53 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.842346251
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841796875
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.840454102
Celigo AI
12/31/2025, 2:53 PM