Nour
10/27/2025, 9:41 PMCeligo AI
10/27/2025, 9:41 PMAI generated answer (using internal Slack threads):Based on the conversations, there could be several reasons why the inventory detail wouldn't save in a User Event after submit even though there is a commit line in NetSuite. 1. CommitLine is not used on regular (non-dynamic) records: If you're trying to use commitLine on a non-dynamic record, it won't work. The commitLine method is only applicable to dynamic records. 2. Save is not used on the newRecord during beforeSubmit: The newRecord is already in the process of being saved during beforeSubmit, so calling save on it again won't have any effect. 3. Timing issue or SuiteScript 2.0 thing: There could be a timing issue or a problem specific to SuiteScript 2.0. One user mentioned that they were able to commit lines and add stuff through the 1.0 API in the browser after the script had done its job. 4. Inventory updates may not necessarily commit the item record in the NetSuite database: A change in the inventory due to various reasons (new sales orders, item receipts for purchase orders, transfer orders, order cancellations/returns, inventory adjustments, etc.) may not necessarily commit the item record in the NetSuite database. This means that a User Event may fail to catch such events for updates to Quantity on Hand & Quantity Available. 5. forceSyncSourcing: This method can be used to force the sourcing and field change behavior of the record to be synchronous with the execution of the script. This might help in some cases. Remember to always test your scripts thoroughly to ensure they're working as expected. ****** 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/27/2025, 9:41 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.848083496
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.83581531
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.821105957
Celigo AI
10/27/2025, 9:41 PM