Hello all, I’m writting a map/reduce script and I ...
# general
s
Hello all, I’m writting a map/reduce script and I would like to refresh an authentication token once at the beginning of the script execution. Does it need to be in the getInputData stage, and then I pass the token onto the next stages? If i try to run it globally, I get “Failed to Evaluate script: all suitescript api modules are unavailable while executing your define callback” Any help?
Well the solution was to use the N/cache module to store the token there and be able to re-access it anywhere else within the script 💡
🙌 1