How to check for workflows/sub-workflows is used in other workflows?

ArghaMukherjee
Tera Contributor

I need to check if a workflow DEMO is used in other workflows, as sub-workflow or not.

Any suggestions if that is possible or not?

2 REPLIES 2

Harsh Vardhan
Giga Patron

@ArghaMukherjee  You can check the table "wf_activity" and apply the filter on Activity definition field. 

 

https://<YourInstanceID>.service-now.com/wf_activity_list.do?sysparm_query=activity_definition%3D35ef56111b211100adca1e094f071315&sysparm_first_row=1&sysparm_view=

 

eg: current subflow activity name is "Parallel Flow Launcher", then filter would be like

Activity definition | IS | Parallel Flow Launcher

 

wfName.PNG

Note:  In workflow version field you will get workflow where sub flow has been used. 

eg: "Create Change" has been used as subflow on workflow "This is test". 

 

Hope it will help you.

 

Thanks,

Harsh

DEMO itself is a workflow, not visible as an option in ACTIVITY DEFINITION field, as you mentioned.

DEMO is visible under WORKFLOW VERSION field in wf_activity table. 

 

What I need is, whether DEMO(workflow) is being called within another workflow or not.