How can I pull the package contents description fr...
# ask-stanley-ai
a
How can I pull the package contents description from the packages subtab on item fulfillment in saved searches?
c
AI generated answer (using internal Slack threads):
To pull the package contents description from the packages subtab on item fulfillment in saved searches, you would need to create a saved search on the Item Fulfillment record. However, the package contents description field is not directly available in the saved search fields. You can use SuiteScript to get the package contents description. Here is a sample code snippet:
Copy code
javascript
var itemFulfillment = record.load({
    type: record.Type.ITEM_FULFILLMENT,
    id: 'your_item_fulfillment_id'
});

var packageLineCount = itemFulfillment.getLineCount({
    sublistId: 'package'
});

for (var i = 0; i < packageLineCount; i++) {
    var packageContents = itemFulfillment.getSublistValue({
        sublistId: 'package',
        fieldId: 'packagedescr',
        line: i
    });
    console.log('Package Contents: ' + packageContents);
}
This script loads the Item Fulfillment record, gets the count of package lines, and then loops through each package line to get the package contents description. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830627501
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.827514708
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.82647717
Please provide your feedback on this answer.