RE: I’m getting an error stated as “RangeError: Maximum call stack size exceeded”
As with .each we areĀ able to get only 4000 and with get range maximum 1000.
Sounds you like you probably have a really inefficient loop/sort, you have to be doing a lot of things to exceed the call stack.