How do I get a list of all flows where the Trigger is "Inbound Email"?

GLewis5
Tera Guru

How do I get a list of all the Flow Designer flows where the Trigger is "Inbound Email"?

1 ACCEPTED SOLUTION

Sagar Pagar
Tera Patron

Hi @Giles Lewis,

 

You have to query Process Flow Triggers [sys_hub_trigger_instance] table. and need to query with trigger type.

Sample script -


var flow_gr = new GlideRecord("sys_hub_trigger_instance");
flow_gr.addQuery("trigger_type", "email");
flow_gr.query();
while(flow_gr.next()){

    gs.info(flow_gr.flow.name);
}

 

Feel free to mark helpful and correct!

Thanks,

Sagar Pagar

The world works with ServiceNow

View solution in original post

4 REPLIES 4

Sagar Pagar
Tera Patron

Hi @Giles Lewis,

 

You have to query Process Flow Triggers [sys_hub_trigger_instance] table. and need to query with trigger type.

Sample script -


var flow_gr = new GlideRecord("sys_hub_trigger_instance");
flow_gr.addQuery("trigger_type", "email");
flow_gr.query();
while(flow_gr.next()){

    gs.info(flow_gr.flow.name);
}

 

Feel free to mark helpful and correct!

Thanks,

Sagar Pagar

The world works with ServiceNow

Thanks!  Now that I know the correct table, I can do it without a script:

  1. In Filter navigator type "sys_hub_trigger_instance.list"
  2. Set the filter to "Trigger type = email"

Yes man!

You can do it by adding filters in Process Flow Triggers [sys_hub_trigger_instance] table.

 

Thanks,

Sagar Pagar

The world works with ServiceNow

Phil Scherry
Tera Guru

Might actually want to search the flow input table instead sys_hub_flow_input.list