How to create business rule in service now?

Divya116
Kilo Explorer

What is business role in service now?

4 REPLIES 4

Maik Skoddow
Tera Patron
Tera Patron

Hi

you can find tons of material when search for that topic on the Internet but for the b eginning you can start with https://developer.servicenow.com/dev.do#!/learn/courses/rome/app_store_learnv2_scripting_rome_script...

Kind regards
Maik

Saurav11
Kilo Patron
Kilo Patron

Hello

Please find the below links.It has everything you would like to know about creating business rule

https://youtu.be/VTJz7Rc2uHo

Please mark answer correct/helpful based on impact

Hitoshi Ozawa
Giga Sage
Giga Sage

The title in the question is about "Business Rule" but the content states "Business Role". These are 2 distinct concepts.

Business Rule is a service side javascript that  are executed when a record is displayed, inserted, updated, or deleted, or when a table is queried.

There are some predefined business rules and users are also able to create their own business rules to fit their business needs.

To view defined business rules, go to "System Definition" > "Business Rules" from Navigator.

find_real_file.png

https://docs.servicenow.com/bundle/rome-application-development/page/script/business-rules/concept/c...

Business Roles is a feature in Employee Service Management to automatically provision applications to employees through identity provider services.

https://docs.servicenow.com/bundle/rome-employee-service-management/page/product/human-resources/con...

shloke04
Kilo Patron

Hi,

A business rule is a server-side script that runs when a record is displayed, inserted, updated, or deleted, or when a table is queried.

Use business rules to accomplish tasks like automatically changing values in form fields when certain conditions are met, or to create events for email notifications and script actions.
 
Clear description is mentioned in ServiceNow docs itself, refer the link below:
 
https://docs.servicenow.com/bundle/rome-application-development/page/script/business-rules/concept/c_BusinessRules.html
 
There is another ServiceNow doc link which you can refer for a better understanding, below details are taken from doc only. Refer it at below link:
 
https://docs.servicenow.com/bundle/rome-application-development/page/script/business-rules/reference/r_HowBusinessRulesWork.html
 

To configure business rules, you first need to determine when the business rule should run and what action it should take.

When business rules run

Business rules run based on two sets of criteria:
  • The time that the business rule is configured to run relative to a record being modified or accessed.
  • The database operation that the system takes on the record.

 

There are some good articles on how to learn more on Business Rule. Refer to the ones suggested by other folks as well look at these below as well:

https://www.servicenowelite.com/blog/2016/6/11/learn-business-rules

https://www.youtube.com/watch?v=VTJz7Rc2uHo

https://www.youtube.com/watch?v=ybxv8o96hFM

https://www.youtube.com/watch?v=88vO-kEmHz0

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke