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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
user event script error when mass update
Hello,
I created a user event script (before submit function) on inventory part to fill page title field with specific formula depends on other fields in the record.
after that, I do mass update for some records, but it returns error because of the script.
In my script I added if statement to check if store display name field not equal null, If yes: fill the page title with the item code + item store display name, but when I try to catch the error with the following syntax:
catch (e)
{
var x= e.getCode() + " " + nlapiGetFieldValue('itemid') + " " + nlapiGetFieldValue('displayname');
nlapiSendEmail(****,'MY_EMAIL', 'error occurs', x);
0