Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

How to find out the flow designers created or defined on a particular table

Nisar3
Giga Guru

For eg: I want to know if there are any flows that run on the incident table.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@Nisar3 

I created article for this in recent months

Identify active flows running on particular table 

1.Navigate to the table list, right-click any column header, and select Configure > Flow Designer Flows.

 

AnkurBawiskar_0-1745578517599.png

 

 

 

2. Use the following script in the background and pass the table name:

var flowName = [];
var flowArray = sn_flow.AssociatedFlows.getFlows("change_request");
var flowRec = new GlideRecord('sys_hub_flow');
flowRec.addQuery('sys_id', 'IN', flowArray);
flowRec.query();
while (flowRec.next()) {
    flowName.push(flowRec.getValue('name'));
}
gs.info('Flows associated with table are-: ' + flowName);

Output:

AnkurBawiskar_2-1745578580328.png

 

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Ankur Bawiskar
Tera Patron

@Nisar3 

I created article for this in recent months

Identify active flows running on particular table 

1.Navigate to the table list, right-click any column header, and select Configure > Flow Designer Flows.

 

AnkurBawiskar_0-1745578517599.png

 

 

 

2. Use the following script in the background and pass the table name:

var flowName = [];
var flowArray = sn_flow.AssociatedFlows.getFlows("change_request");
var flowRec = new GlideRecord('sys_hub_flow');
flowRec.addQuery('sys_id', 'IN', flowArray);
flowRec.query();
while (flowRec.next()) {
    flowName.push(flowRec.getValue('name'));
}
gs.info('Flows associated with table are-: ' + flowName);

Output:

AnkurBawiskar_2-1745578580328.png

 

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Yeh, I had figured it out a few minutes back. But good to know there is a way to do it via script too.

Dr Atul G- LNG
Tera Patron

Hi @Nisar3 

 

Could you please check or see my reply as well? Not sure why my reply is not visible.

*************************************************************************************************************
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/dratulgrover [ Connect for 1-1 Session]

****************************************************************************************************************

I can't see your answer. Unsure why.