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.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
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