Monday, July 8, 2019

Create a Search for Scheduled Script Instance that is in 'Processing' or 'Pending' status via SuiteScript

Code Samples

The following code filters the search for a specific scheduled script and returns an instance that is currently processing or pending process.

var searchFilter1 = new nlobjSearchFilter('status', null, 'anyof', ['PROCESSING', 'PENDING']);// deploymentid should be the deployment id of the sched scriptvar searchFilter2 = new nlobjSearchFilter('scriptid', 'scriptdeployment', 'is', deploymentid); var filters = [searchFilter1, searchFilter2];var result =  nlapiSearchRecord('scheduledscriptinstance', null, filters); 

Click here for more information and samples about Scheduled Script Instance

No comments:

Post a Comment