business rule details

adityahubli
Tera Contributor

one business rule can called in another scope application just like script include ?

 

3 REPLIES 3

Ashir Waheed
Kilo Sage
Kilo Sage

Hi @adityahubli 

 

Please go through the details below, they will be able to help you have the better understanding of these functionalities.

 

  • Script Includes:
    These can be explicitly set to be accessible from all application scopes (Accessible from: All application scopes). That’s why you can call them across scoped apps, provided the Client Callable.
  • Business Rules:
    These are tied to a specific table and scope. You cannot directly call or execute a Business Rule from another scope the way you do with Script Includes. They’re meant to run automatically on database operations (insert, update, delete, query) or as "before/after" logic on records in that scope.

You can also lookup at the ServiceNow DOCS Business Rule

 

Regards,

Ashir Waheed

 

 

M Iftikhar
Mega Sage

Hi @adityahubli ,

A Business Rule itself cannot be directly called from another scope like a Script Include. However, if you are updating or inserting a record (for example, on the Incident table) from another scope, and that record meets the conditions of the Business Rule, then the BR will still execute automatically.

So it’s less about “calling” the BR and more about the fact that its logic will fire whenever its conditions are satisfied, regardless of which scope initiated the update.

Also not frequent but you can fire a business rule via scheduled job as well check OOTB incident Auto close business rule (System Definition -> Business Rules -> incident autoclose)

MIftikhar_0-1757896647117.png

Business Rules FAQ 

 

Thanks & Regards,  
Muhammad Iftikhar  
  
If my response helped, please mark it as the accepted solution so others can benefit as well. 

Nikhil Bajaj9
Tera Sage

Hi @adityahubli ,

 

Business Rule can't be called from any other scope. Only script include can be called from other scope with these conditions- The Script Include you intend to call must be configured to be accessible from other scopes. This is typically achieved by setting the "Accessible from" field on the Script Include record to "All application scopes" or to the specific scope of your Business Rule.

 

Please appreciate my efforts, help and support extended to you by clicking on – “Accept as Solution”; button under my answer. It will motivate me to help others as well.
Regards,
Nikhil Bajaj