is possible to create by script drop shop po?
# ask-stanley-ai
r
is possible to create by script drop shop po?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it is indeed possible to create a drop ship purchase order (DSPO) via SuiteScript. This can be done by setting the
createpo
sublist field for the item on the sales order to
DropShip
. This will have NetSuite automatically create the drop ship purchase order for you. However, it's important to note that this process is not officially documented by NetSuite, and while it's currently possible, there's no guarantee that it will continue to work in the future if NetSuite changes their system. As for adding an item to a drop ship PO after it's been created, the conversations suggest that this may not be possible. ****** 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.849967718
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.84328711
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834718
Please provide your feedback on this answer.
s
var po_params = { 'recordmode': 'dynamic', 'soid': '<Sales Order Internal ID>', 'shipgroup': '< Ship Group Internal ID > ', 'poentity': '<Internal ID of the Preferred Vendor for the Item>', 'dropship': 'T', 'custid': '<Customer Internal ID>', 'entity': '<Internal ID of the Purchase Order Vendor>' }; var po = record.create({ type: record.Type.PURCHASE_ORDER, isDynamic: true, defaultValues: po_params }); po.save({ enableSourcing: true, ignoreMandatoryFields: true });
1