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.

Ankur Bawiskar
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