Run Flow on multiple tables at a time

Harish74
Tera Expert

Hi there,

I have created a flow like this:

find_real_file.png

find_real_file.png

This flow will make the release record Active when state reset to Draft from Closed complete/Cancelled.

I want to do this for few other tables like rm_task, rm_release_phase and rm_feature. 

I don't want to create separate flows for each of the table. Is there a way to adjust this flow so that it will run for all the tables I mentioned above.

Please suggest me on this. 

4 REPLIES 4

Maik Skoddow
Tera Patron
Tera Patron

Hi

basically, a Flow can only be triggered for one table. But you can look up the records in all the mentioned tables and update them with the respective action accordingly.

Kind regards
Maik

Abhijit4
Mega Sage

Hi,

Its not possible to trigger one flow on multiple table record update. 

However, instead you can create common subflow and pass inputs like table name and field values to it. You can use same subflow in every flow if the functionality is same.

Let me know if you have any further queries.

Please mark this as Correct or Helpful if it helps.

Thanks and Regards,
Abhijit

 

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Anyway we have to create separate flows right?

Hi Harish,

I am pretty sure that you can do it with subflow by passing variable input to subflow like Table Name, field names to be updated, field value.

Here Script to call flow you can find how we can call flows, subflows and actions with scripting.

However, I think you can do the same with flow as well, if you look at above link they have given a way to pass input to flow as well (but to be frank I haven't tried this practically so not sure how to access those input variables in flow)

Please mark this as Correct or Helpful if it helps.

Thanks and Regards,
Abhijit

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP