Я пытаюсь сделать пользовательское массовое обновление в netsuite с помощью JS-скрипта, но это не работает.
Код:
function updateDepartment(rec_type, rec_id)
{
var transaction = nlapiLoadRecord(rec_type, rec_id);
transaction.setLineItemValue ('item','department', nlapiGetContext().getSetting('SCRIPT','custscript_dept_update'));
nlapiSubmitRecord(transaction, false, true);
}