Need Usecases of Business rule & client script

harver31
Tera Contributor

Hi All

 

Can anyone provide the use-cases for Business rules, UI policy, Client script?

 

Thanks in advance

1 ACCEPTED SOLUTION

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @harver31 

 

This might be helpful

 

https://developer.servicenow.com/dev.do#!/learn/courses/washingtondc/app_store_learnv2_scripting_was...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @harver31 

 

This might be helpful

 

https://developer.servicenow.com/dev.do#!/learn/courses/washingtondc/app_store_learnv2_scripting_was...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

harver31
Tera Contributor

Hi @Dr Atul G- LNG Can you share some realtime scenario as well?

Hi @harver31 

 

BR - Copy the comments from Change task to change 

Close Incident when All incident task get closed

 

UI Policy 

- Create a small Application for parking booking

Then make few field mandatory like vechile number etc.

 

Client Script

- Above example, ask for parkin start / end date and then populate the number of days

 

You can create any App and then these type of use cases you can build. 

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Aleks5
Tera Contributor

Hi @harver31 

 

Business Rule: You can trigger a script by a condition when a record is inserted/updated/deleted

for example: You create a new User-Record (onboarding) and assign him a Team. You could create a business rule, to inform every teammember about their new colleague.

 

Client Script: Trigger Script right on the form while working on it.
for example: You are creating a new User-Record. You fill in the name and then the surname attribute. The client script gets triggered and fills out the two fields "UserID" and "Email" automatically.

 

UI Policy: Sets mandatory, read-only, visible by condition.

For example: You are working on the User-Record. If you flag the field "External", the field "Mobile" becomes mandatory and the field "Tax ID" becomes visible and mandatory.

 

If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.