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.
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