Friday, June 28, 2019

Implement a Better Try-Catch logic with Counter for Scripts with API invoking Network/Remote calls

Here is a sample snippet of how to implement a better try-catch logic (with counter parameter) to be able to control how many times to retry a request. This is useful for scripts with API invoking Network/Remote calls (ex. nlapiRequestURL, nlapiXMLToPDF).


No comments:

Post a Comment