Mike Casey
02/04/2025, 9:58 PMCeligo AI
02/04/2025, 9:58 PMAI generated answer (using internal Slack threads):To get all the item fulfillments connected to a sales order using SuiteScripts and the record module, you can create a search on the
ITEM_FULFILLMENT
record type and use the createdFrom
field as a filter. The createdFrom
field on the item fulfillment record is a reference to the sales order from which the fulfillment was created.
Here is a sample code snippet:
javascript
var mySearch = search.create({
type: search.Type.ITEM_FULFILLMENT,
columns: ["internalid", "tranid", "statusref", "status"],
filters: ["createdFrom", "anyof", salesOrderId],
});
In this code, salesOrderId
is the internal ID of the sales order for which you want to find related fulfillments. The anyof
operator is used instead of is
because createdFrom
is a multi-select field.
Please note that the createdFrom
field might not be visible on the record browser, but it is available for use in SuiteScript.
******
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
02/04/2025, 9:59 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.844957471
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.835593224
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.830839634
Celigo AI
02/04/2025, 9:59 PM