Mark
10/14/2025, 5:26 PMCeligo AI
10/14/2025, 5:26 PMAI generated answer (using internal Slack threads):In NetSuite, setting inventory detail during order creation can be a bit tricky due to the limitations of client-side scripting. However, it is possible to set the inventory details when you fulfill the order. Here are some key points from the conversations: 1. Inventory details can be set in the Sales Order (SO), but it's not required like in Item Fulfillments or Invoices. 2. The Inventory Detail subrecord of a Work Order Completion is scriptable, but you might encounter issues when trying to select a new line for inventory assignment. 3. If you're trying to autogenerate the serial/lot number on the inventory detail, you might face some challenges as some records do not support this operation. 4. A workaround for this limitation is to use a hybrid JavaScript/SuiteScript approach where you put your logic in a client script deployed to the inventory detail record and rely on JavaScript to automatically click buttons. 5. Another approach is to use a Suitelet as a middleman. You can enter the quantity in the Suitelet, which then transforms the work order to work order completion. You can then set the inventory detail server-side. 6. If you're looking to modify the Inventory Detail from the Client Script during Item Fulfillment, you might need to pass some parameters to the Suitelet. However, you might face issues getting the source record ID or the fulfillment record 'itemfulfillment'. 7. To get the serial number, you can use an item search that uses inventory number join or an inventory number search. 8. If you update the SO with the inventory detail from the Item Fulfillment, the item fulfillment record might not have the inventory detail. You might need to create a new fulfillment to get the inventory details on the sales order to the item fulfillment. Remember, these are based on previous conversations and might not work in all scenarios. Always test your scripts thoroughly before deploying them. ****** 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
10/14/2025, 5:27 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.85498035
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.852478
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.851745486
Celigo AI
10/14/2025, 5:27 PM