0
votes

We have some scripts triggered by user event-create or update. Could someone tell me how to use suitscript to simulate Edit-Save process on NetSuite records.

The following code doesn't trigger other scripts.

function triggerScriptTest() {
nlapiLogExecution('debug','Start!!!');
var record = nlapiLoadRecord('itemfulfillment', 267765);
var itemCount = record.getLineItemCount('item');
nlapiLogExecution('debug','Number of Items',itemCount);
var id = nlapiSubmitRecord(record, true);
nlapiLogExecution('debug','Finished!!!');
}

1

1 Answers

2
votes

This is because a User Event can't trigger other User Events. You can get around this by loading/saving the record within a Suitelet and calling it from your User Event.