Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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.