We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

How to get current Flow Designer Action Context SYSID in in Script step

sandeep24
Kilo Sage

How to get current Flow Designer Action Context SYSID in Script step

find_real_file.png

1 ACCEPTED SOLUTION

Aman Kumar S
Kilo Patron

Hey, 

Please try:

var sysID = FlowScriptAPI.getContextID();

Best Regards
Aman Kumar

View solution in original post

6 REPLIES 6

Glad to do that 🙂

Best Regards
Aman Kumar

Deepak61_0-1714484356911.png

I am getting FlowScriptAPI not defined, flow is in global scope. The documentation says it's a scoped application method. Is there any method for global scope?