Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
runtime.getCurrentScript().getRemainingUsage() is incorrect
I have a map/reduce script that I am playing with and I am just trying to see how much usage a search paged data is taking. I have 1 runPaged and then multiple fetches. In my current script, it does the runPaged and 6 fetches which should be 35 governance. According to the doc, 5 for runPaged and then for each fetch it is an additional 5. I call runtime.getCurrentScript().getRemainingUsage() BEFORE i do anything and once again after it is done and both times it is returning 10000 which is max governance. Is there something not right here?
0