Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
User event script and new record
When a sales order is saved I need scripts to do this:
1. Pass some data from the sales order to my web service.
2. Take some of the data from the web service and store it in the sales order.
3. Take some of the data from the web service and create custom records that have a field that references the sales order.
Some of my scripting needs to be in a "before submit" function because I need to update the sales order. I can't put all of my script in the "before submit" function because when I create a new sales order, the "new" record does not have an ID that I can reference in my custom records.
0