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!
Modify script to add prefix to Internal ID
I have a script that populates the transaction record's internal id on a custom field. I am using the internal id as a way to auto-generate an alternate number for the transaction but would like to add a 2 letter prefix as we do for other transaction numbers.
What script modifications are recommended to help me achieve the prefix concatenation?
function afterSubmit(){
var rec = nlapiGetNewRecord();
var rec_id = rec.getId();
var rec_type = rec.getRecordType();
nlapiSubmitField(rec_type,rec_id,'custbody_alt_tran_num',rec_id);
}