Which Runs first, Flow or Business rule?

frank121
Kilo Sage

Hi all, If I have a after business rule that runs ONLY on insert and I have a flow that runs on created ONLY for the same table, which would run first? From the tests that I have done I THINK the business rule runs first but I don't see any documentation that would state that from ServiceNow unless I am missing it. To add to this, if I had multiple flows that run on the same table is there a way to order them like business rules so I can dictate which one runs first and which one runs last? Thanks.

1 ACCEPTED SOLUTION

Allen Andreas
Administrator
Administrator

Hi,

Please refer to this documentation which includes the execution order of scripts and engines: https://docs.servicenow.com/bundle/sandiego-application-development/page/script/general-scripting/re... 

To assist further, business rules would run before flows.

 

For your additional question, in Utah, there is functionality being added to set the priority of flows to high, medium, low which could determine the order they're ran, but right now, in Tokyo and below, there isn't. https://docs.servicenow.com/en-US/bundle/utah-build-workflows/page/administer/flow-designer/concept/... 


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

2 REPLIES 2

Allen Andreas
Administrator
Administrator

Hi,

Please refer to this documentation which includes the execution order of scripts and engines: https://docs.servicenow.com/bundle/sandiego-application-development/page/script/general-scripting/re... 

To assist further, business rules would run before flows.

 

For your additional question, in Utah, there is functionality being added to set the priority of flows to high, medium, low which could determine the order they're ran, but right now, in Tokyo and below, there isn't. https://docs.servicenow.com/en-US/bundle/utah-build-workflows/page/administer/flow-designer/concept/... 


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

AndersBGS
Tera Patron
Tera Patron

Hi @frank121 ,

 

Please refer to this community post: https://www.servicenow.com/community/developer-forum/what-is-the-sequence-order-for-any-client-side-... as this will give you a great overview.

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Best regards

Anders

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/