How can I get the sys id of flow context that is created in the later steps of the same flow context?

Smriti Rastogi
Kilo Guru

Is there a way to fetch the sys id of the current flow in later steps in flow designer?

something like current.sys_id

5 REPLIES 5

Dominik9
Tera Guru

Hi @Smriti Rastogi 

You can use the FlowScriptAPI: https://www.servicenow.com/docs/bundle/xanadu-api-reference/page/app-store/dev_portal/API_reference/...

var contextId = FlowScriptAPI.getContextID();
return contextId;