Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
How to handle two scripts trying to update the same item record in Xedit?
Hello, I've got two Suite Scripts (both 2.1, user event, after submit) which update item records (in one we're updating the pricing sublist from custom item fields, for the other we're writing to the locations sublist from other custom item fields).
When updating the relevant fields using inline editing via a saved search (xedit), we're getting errors, which I believe are due to the two scripts trying to write to the same record at the same time.
Usually I get "Error: RCRD_HAS_BEEN_CHANGED" (sometimes "Error: UNEXPECTED_ERROR").
Any recommendations for setting things up so the two scripts won't conflict? Hopefully something simple we can add to one or both of the scripts?