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!
Update to the department field isn't working
I'm trying to use a simple scheduled script to update Return Authorization Department field. Doing Save -> Execute.
Script:
function updateTransactionDept() {
var records = nlapiSearchRecord('returnauthorization', 'customsearch1764', null, null);
for ( var i = 0; i < records.length; i++ ) {
nlapiSubmitField(records[i].getRecordType(), records[i].getId(), 'department', 288);
}
}
Doesn't throw any errors. Says it completed. Nothing gets updated.
Ideas? =/