Which executes first ,UI policy action or UI policy script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2019 07:51 AM
When runnning ui policies ,which executes first ,whether UI policy action or UI policy script?
- 22,306 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thanks, thats what I observe too. As it rollback actions if it false.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2019 07:56 AM
Hi Rohith,
UI policy has UI policy actions and also script when condition evaluates to true/false
so this is the order; try once
1) UI policy action first
2) UI policy script
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2019 07:58 AM
Can you give me any idea ,how to test which executes first?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-29-2019 09:32 AM
Hi Rohith,
Sample example:
1) on incident form write UI policy when state changes to closed; make short description as mandatory from UI policy action
2) from UI policy script execute if true; use below script
g_form.setMandatory('short_description', false);
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2023 03:38 AM
We got two differents answer. Which one is the right answer please?
