here’s what I use, without issue: ```function chec...
# general
c
here’s what I use, without issue:
Copy code
function checkGovernance() {

    var context = nlapiGetContext();
    var remainingUsage = parseInt(context.getRemainingUsage());
    context.setPercentComplete(((10000 - remainingUsage) / 10000 * 100).toFixed(2));
    if (remainingUsage <= 500) {
        nlapiYieldScript();
    }
}