https://netsuiteprofessionals.com logo
Title
s

samyt

09/06/2018, 10:16 AM
Hi All, I have a scenario where I am running a schedule script and in my schedule script I have some record which are loaded and its edited and saved. I was just wondering is possible to not run the userevent which are deployed in the record ?
m

mikej

09/10/2018, 4:31 PM
Hi Samyt, In 1.0, use var currentContext = nlapiGetContext(); if( (currentContext.getExecutionContext() != 'scheduled') {//then proceed }. In 2.0, use the N/runtime module. var executionContext = runtime.executionContext;