Execution order
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 07:02 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-15-2024 08:45 PM
Hi @keerthi35 for 2nd question refer below thread
https://www.servicenow.com/community/developer-forum/ui-policy-and-client-script/m-p/1662013
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2024 08:05 PM - edited 03-17-2024 08:06 PM
Hi @keerthi35
Q2. Which one execute first client script order is 500 and Ui policy order is 100 --> as tested on load client script runs first with higher order and then UI Policy executes.
From your end what you can do is test in PDI and run the scripts to understand which runs first.
Please accept my solution if it is helpful for you
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2024 09:28 PM
*ACL and BR are the server side scripts, And ACL will always have higher priority than any other script.
*We can not compare server side scripts to client side script.
*Which one execute first client script order is 500 and Ui policy order is 100 :- UI Policy will always have higher priority than client script irrespective of order, means client script executes first then UI policy.
Please Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2024 10:13 PM
HI @keerthi35 ,
I trust you are doing great.
the execution order:
- ACLs
- Business Rules
- Client Scripts
And for the prioritization between Client Scripts and UI Policies:
- Client Scripts execute beforeUI Policies .
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi