我正在尝试使用 JS 脚本对 netsuite 进行自定义批量更新,但它不起作用。
代码:
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);
}