Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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
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  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

5 REPLIES 5

Even you accepted my answer as well. 

 

@Dan Bruhn  @David,  could you please check this post, I replied to this post, and @Nisar3  accepted my answer as well, but now my answer is not even visible on the post.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

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/atul_grover_lng [ Connect for 1-1 Session]

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