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.

Ankur Bawiskar
Tera Patron
Tera Patron

We often need to identify which flows are running on a particular table. Unfortunately, this cannot be determined out of the box in Flow Designer or Workflow Studio. However, there are two ways to achieve this:

 

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

 

AnkurBawiskar_2-1736500170544.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_0-1736500110045.png

 

 

Version history
Last update:
‎01-10-2025 01:09 AM
Updated by:
Contributors