Tuesday, December 18, 2018

Clear the instance of nlobjError to successfully invoke nlapiYieldScript or nlapiSetRecoveryPoint

To successfully invoke nlapiYieldScript in a Scheduled script with and instance of an nlobjError, it is imperative that the nlobjError be cleared as it is not included in the objects supported by said API. The following code snippet clears the nlobjError:

try{ throw "ignoreme"; }catch(noop){}



No comments:

Post a Comment