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
SuiteScript Internalid Write on the Record
Hi Everyone,
Scripting newbie here that is :h_a_w:
I would like to write the internalid value of a record after I hit save. Writing the internalid through suitescript would allow the users to see the internalid after the save.
Here is my current code. I am using a BeforeSubmit User Event Script.
function userEventBeforeSubmit(type){
var internalid = nlapiGetFieldValue('internalid');
nlapiSetFieldValue('custbody_internal_id', internalid);
}
When I run it nothing happens... I am able to get a value and write it when it is a static field updated by the user.
0