How to make sure a before insert BR runs after the assignment rules execution

prasanna11
Mega Guru

When users create an incident from end user portal, I have a need to make sure a before update/insert BR runs before assignment rules execution. Can anyone help me with understanding which runs first the assignment rule or the business rule.

1 ACCEPTED SOLUTION

Alexis Hemled
ServiceNow Employee
ServiceNow Employee

Hello Prasanna,



It depends on the order of your Business Rule. If it is configured On before and less than 1000, it will run before the assignment rule.



You can have more details by checking this link : Execution order of scripts and engines



As you can see, Assignment Rules engine is on step 2 while the BR on before with order less than 1000 are on step 1. However, if you set an order greater than 1000, it will run on step 3 thus making it execute after the Assignment rules.



I hope this helps



Alexis


View solution in original post

2 REPLIES 2

Alexis Hemled
ServiceNow Employee
ServiceNow Employee

Hello Prasanna,



It depends on the order of your Business Rule. If it is configured On before and less than 1000, it will run before the assignment rule.



You can have more details by checking this link : Execution order of scripts and engines



As you can see, Assignment Rules engine is on step 2 while the BR on before with order less than 1000 are on step 1. However, if you set an order greater than 1000, it will run on step 3 thus making it execute after the Assignment rules.



I hope this helps



Alexis


haseena ayesha
Kilo Guru

Hi


Prasanna



When creating new assignment rules, keep in mind that business rules can take precedence over assignment rules in certain circumstances.


Assignment rules and business rules run in the following order:


  1. All before business rules that run on a record insert with an order value less than 1000.
  2. The first assignment rule with the lowest execution order and matching condition.
  3. All before business rules that run on a record insert with an order value greater than or equal to 1000.
  4. All after business rules that run on record insert.

Please check below Thread it may be helpful to you:


Precedence b/w Assignment Rules vs DISPLAY Business rule ?




Thanks & Regards


Haseena


                                                                                                PS: Hit like, Helpful or Correct depending on the impact of the response