The sequence of the business rule action and advanced execution

Jiang Yang
Tera Contributor

What I was trying to ask was if any coding in the "Advanced" tab of a business rule will override any other actions a Business Rule will take.? EX: We have advanced checkbox marked, with code in the advanced tab. But we do have Actions that update fields outside of the advanced tab. Since Advanced code is also update same fields, will the business rule process the advanced code after performing the other actions?

 

JiangYang_0-1730184025258.png

JiangYang_1-1730184043295.png

 

JiangYang_2-1730184062306.png

If I create a new record , the importance filed will be set to be 3 or 1?

 

3 REPLIES 3

Akash4
Kilo Sage
Kilo Sage

Hi Jiang,

The fundamental rule in SN, if the "Advanced" checkbox is selected, the code in the "Script" section will override and control the entire logic of the rule (settings in Actions tab won't execute)

 

In any case, you can add conditional blocks in script and shift any logic from Actions tab to Advanced (if both are required)

 

Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.

Thanks a lot ,Kilo

Your reply is consistent with the result of my actual verification, the code in the "Script" section will override and control the entire logic of the rule (when update the same field).

 

As you said , above is the fundamental rule in SN, Whether there is an official document for the servicenow, describing it ?

Akash4
Kilo Sage
Kilo Sage

Hi Jiang,

I experienced it practically like you, also by many others. Maybe its in back of my head that Script is Fundamentally superior in a BR, please don’t take it otherwise.
If I get any links I’ll share it here, but did not find any yet.

 

Regards, Akash
If my response proves useful, please mark it "Accept as Solution" and "Helpful". This action benefits both the community and me.