how to trigger flow via business rule

Mark Wood
Tera Contributor

Hello Experts,

I want to trigger flow by flow designer can anyone please tell me how can we trigger flow by writing the script in the business rule?

thank you.

7 REPLIES 7

Alex Rose
Tera Guru

I would refer back to this answered question here:

https://www.servicenow.com/community/developer-forum/how-to-trigger-the-flow-designer-from-business-...

 

You could also convert your business rule to a flow entirely, as you can configure the flow trigger to be the same as the business rule condition.

OlaN
Giga Sage
Giga Sage

Hi,

Easiest way is to open the Flow in Flow Designer, click on the More actions menu in the upper right corner, then select to Create Code snippet.

Copy the code, and paste it into your Business Rule.

flow-create-code-snippet.png

Mark Wood
Tera Contributor

Hello, @Abhijit and @OlaN if I specify any trigger condition in flow designer and the same flow I am triggering via a business rule by pasting code snippet code then which one will trigger my flow? or flow will trigger two times.

@Mark Wood , you can use the same condition which you are using for business rule to trigger on flow designer triggering condition as well , if record is updated and conditions met in that case flow will trigger.

 

Hope this helps, mark if useful so that it may help others also.