Execution order

keerthi35
Tera Contributor

Q1. Execution oder oa ACL, BR and Client script

 

Q2. Which one execute first client script order is 500 and Ui policy order is 100

 

8 REPLIES 8

Sumanth16
Kilo Patron

Hi @keerthi35 ,

 

Execution oder oa ACL, BR and Client script

The order of execution be like-

ACL -Purpose of ACL is to ensure what data users can access and hoe they can access it.

Client Script - Runs on browser and used for validation purpose. Client side validation includes making a field mandatory, read only, hidden etc.

UI Policy - This is similar to Client script, except that not need to write a script.

Business Rule - This runs at server side when a form Insert , Update. This can do some action that can be achieved only by running from server.

UI Actions - UI Actions are UI elements that can show up on form or a list as a button, link or context menu.

https://www.servicenow.com/community/developer-blog/a-race-between-ui-policy-and-client-script/ba-p/...

 

 

Q2. Which one execute first client script order is 500 and Ui policy order is 100

Client scripts will run first and the UI policy. You can verify it by adding alert messages.

 

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

Harish KM
Kilo Patron
Kilo Patron

Hi @keerthi35 the answer differs on what type of business rules is running.

You cannot compar server vs client.  Client api always runs first and they run on browser level.

Refer this image

Screenshot_20240316_112520_LinkedIn.jpg

Regards
Harish

Thanks @Harish KM