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
base price id when using xedit
Hello,
I would write a script to send notification email when base price changed for the item.
I'd also like to use this script for prices edited by import, so I will use xedit in my script
but I can't get the id for the base price I should add in my script
The script will be as the following:
if(type == 'edit' || type == 'xedit' || type == 'create') { var old_item = nlapiGetOldRecord(); var flds = nlapiGetNewRecord().getAllFields(); for ( var i = 0; i < flds.length; i++ ) { if( flds[i] == '*****') { nlapiSendEmail(....); break; } .... } } What should I add in the starts place?
0