Hi all, hope this is an easy one. How can I get t...
# suitescript
m
Hi all, hope this is an easy one. How can I get the current execution context of a script? I tried to open up the deployment to all execution contexts, but having trouble figuring out what the execution context is when a user approves an expense report from the "approve expense reports" page which is from the reminder portlet.
I wound up just figuring it out manually by divide and conquering all of the Execution Contexts in the deployment. The correct answer was "User Event Script." Let me know if anyone knows a less tedious way.
s
from
N/runtime
...
runtime.executionContext
👍 1
j
See SuiteAnswers 45172. You can get it from the
N/runtime
module
👍 1
runtime.executionContext
s
jinx
j
dangit Sandii
m
Thanks y'all!