- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2019 11:07 AM
- Which one of the following is true?
- A UI Policy’s Scripts execute before the UI Policy’s Actions
- A UI Policy’s Actions execute before the UI Policy’s Scripts
- A UI Policy’s Actions and Scripts execute at the same time
- The execution order for a UI Policy’s Scripts and Actions is determined at runtime
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2019 11:18 AM
Hi there,
I believe it is A UI Policy’s Scripts execute before the UI Policy’s Actions just like Sanjiv mentioned. I can't find any documentation on this on for example Docs. Though, if you would just test this in a PDI, then you would be able to confirm it is the correct answer.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2019 11:13 AM
- A UI Policy’s Scripts execute before the UI Policy’s Actions
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2019 11:18 AM
Hi there,
I believe it is A UI Policy’s Scripts execute before the UI Policy’s Actions just like Sanjiv mentioned. I can't find any documentation on this on for example Docs. Though, if you would just test this in a PDI, then you would be able to confirm it is the correct answer.
Kind regards,
Mark
---
Kind regards,
Mark Roethof
Independent ServiceNow Consultant
10x ServiceNow MVP
---
~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-09-2023 11:50 AM - edited 09-09-2023 11:51 AM
This is incorrect.
As per the Scripting in ServiceNow Fundamentals eBook page 157 (Tokyo): "UI Policy Actions execute before UI Policy Scripts"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2019 11:32 AM
Yea, I just tested this myself and can confirm that the script portion of a UI policy run before the actions do.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!