How to trigger a flow on sc_req_item update

Kris Johnson
Kilo Contributor

Flow designer now has support for Catalog Items via the "Flow Designer support for the Service Catalog" plugin, but as far as I can tell, it only triggers on request item creation. How can a flow be triggered by updates to a sc_req_item record?

3 REPLIES 3

Brad Tilton
ServiceNow Employee
ServiceNow Employee

The Flow/Catalog process is designed for you to specify the flow you want from the catalog item itself, and you are correct that it will only trigger on item submission. Because of all of that the sc_req_item table is not selectable in the table picker in the trigger section.

However, you can still call a flow/subflow from a script using the FlowAPI. I know it's a bit of a workaround, but I would create a subflow where the input is a Request Item record:

find_real_file.png

Then you can call that from a business rule that runs on update via the flow API and pass the current object. I didn't actually test this so it's possible you may have to play around with passing the current object into the subflow, but I think this overall architecture may be your best way forward.

Marcin Vogelsin
Tera Expert

You can consider creation of a flow on Task with a condition inside on task type = sc_req_item. It has its downsides, but may be applied in some cases. 

it works successfully , thank your Mr Marcin