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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
How can I reduce the processing time of this script by improving the N/search?
Hiya,
I'm working on trying to improve the time it takes to process a User Event script on my Sales Orders that afterSubmit will look up the cost values of items on the transaction and save the record with Gross Profit and Gross Profit Percentage values for each item line.
I think for start I can save a little time by swapping this from afterSubmit to beforeSubmit, right?
But the main area I think I can save time on is if I can remove the need to search for the cost values from the item records.
At the moment I have these searches in my script:
0