Which one will runs first UI Policy action or UI Policy script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-17-2019 10:44 AM
I believe UI Policy Scripts run first am i right????
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2019 05:56 AM
By my observation UI Action runs first then the UI Script,
for eg,: try to add an field msg with bug(don't add semi colon or don't pass (true/false)), here you will find the UI Action runs as per the given condition and UI Script will not show you the field msg.
Hence UI Action still execute correctly even if UI Script fails.
Correct me if am wrong!
Suggestion will be appreciated!!
Regards,
Sanket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2021 10:33 PM
Okay it works as you say, but the execution order ??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-10-2021 08:28 AM
This is an actual question on the Application Developer Certification exam, despite there not seeming to be any documentation about it. Has anyone found any documentation at all pointing to this? Or can we get an answer from ServiceNow?
Which runs first, a UI Policy Action or a UI Policy Script?
- Action runs first, then Script.
- Script runs first, then Action.
- Both run simultaneously.
- Order of execution is determine by the system at runtime.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-23-2021 02:03 PM
A UI Policy's Actions execute before the UI Policy's Scripts.
Please mark this as correct answer!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-11-2021 08:12 AM
I believe what
Steps:
Step 1. UI Policy "When to Apply" Conditions are evaluated.
Step 2. The various UI Policy Actions are executed if step 1 evaluated to true. Or, if step 1 evaluated to false, and the "Reverse if false" checkbox is selected, the UI Policy Actions STILL get executed, but their behavior is reversed.
Step 3. The "Execute if true" Script portion of the UI Policy is executed, if step 1 evaluated to true. If step 1 evaluated to false, the "Execute if false" Script portion of the UI Policy is executed.
If anyone thinks that what I am saying here is wrong, please provide evidence / documentation to back up your claim. Thank you.