Hi, has anyone handled applying a Credit Memo to a...
# suitescript
n
Hi, has anyone handled applying a Credit Memo to an Invoice when a customer has 10K+ open invoices? My Map/Reduce script stops at 10K due to the search limit. Any ideas to get around this? Thank you
j
I’ve seen that issue before — NetSuite’s search result limit of 10,000 records can cause Map/Reduce scripts to stop when applying Credit Memos to large volumes of invoices. There are a few reliable ways to work around this, such as using search pagination with result indexing, or dynamically loading subsequent result sets using the
search.runPaged()
API. If you’d like, I can review your current script and propose a solution that handles all invoices efficiently without hitting the 10K limit. Would you like me to take a look at your current approach?
thankyou 1
r
So blatantly copy pasting responses from AI.
1000 1