<@U6TBKTZNH> what are you trying to accomplish by ...
# suitescript
s
@Ravi what are you trying to accomplish by calling the Suitelet from the Map/Reduce script? There are problems in calling Suitelets from a server-side script like a Map/Reduce, because of the lack of a real user session, unless the suitelet allows calls without login. A better approach might be to modularize the code in the Suitelet into a shared module that can run from both the Suitelet and from a Map/Reduce script, and then just load the module and run the code directly in the M/R script. When I have common functionality that I want to use in several different script types, I always try to put the core logic in a shared module, and then the script files themselves are just entry points that load and run the code from the shared module.
✔️ 1
🦆 1
❤️ 4