Global Business Rules -- When to USE Them

mferich
ServiceNow Employee
ServiceNow Employee

Although it is said that ServiceNow strongly advises against using Global Business Rules... playing Devil's advocate: why are Global Business Rules available?

 

What would be a good example of using a Global Business Rule?

 

Anyone with an answer would help me greatly.

 

Best,

Myles Ferich

1 ACCEPTED SOLUTION

Community Alums
Not applicable

Global Business Rules are only available still for backward compatibility, but you should NEVER use them. You should instead use Script Includes.


View solution in original post

4 REPLIES 4

Community Alums
Not applicable

Global Business Rules are only available still for backward compatibility, but you should NEVER use them. You should instead use Script Includes.


Uncle Rob
Kilo Patron

The reason you would need to use Global Business rules in the past is if you wanted a custom globally accessible function, such as getMyGroups, or getUser.   You can do the same thing in Script Includes now in a safer, less performance impacting way.



WIKI:   Script Includes - ServiceNow Wiki


Andre Moreira
Kilo Expert

Myles Ferich



I believe that only time I needed to create a Global Business Rule was because this:



Filtering Related List Relationships - ServiceNow Wiki



For other options follow this link:



http://wiki.servicenow.com/index.php?title=Business_Rules_Best_Practices#Use_Script_Includes_Instead...



[]'s


Andre Moreira


mferich
ServiceNow Employee
ServiceNow Employee

Thank you all for your answers!