Saturday, January 19, 2019

Log the execution context with the use of nlapiGetContext API

The code below determines the execution context of a certain record that is processed.

function BeforeLoad(type, form)
var currentContext = nlapiGetContext();
var executionContext = currentContext.getExecutionContext();

nlapiLogExecution('DEBUG','Context Type',executionContext);  // logs the execution context under the Execution Log subtab of the script

No comments:

Post a Comment