What is order of execution of UI policy ? Weather do they get execute in ascending order or descending order ? What if two policies have same order , then which one will get executed first ?

Sanket1
Giga Contributor

What is order of execution of UI policy ? Weather do they get execute in ascending order or descending order ? What if two policies have same order , then which one will get executed first ?

1 ACCEPTED SOLUTION

Shubham Tipnis
Kilo Sage
Kilo Sage

Hi Sanket,

 

The Order field sets the order of evaluation of UI Policy conditions for UI Policies for the same table.

The order of evaluation is from the lowest number to the highest number (ascending order). There might be a conflict when order of multiple UI policy is same.

Also, conflicting UI Policy Actions will be shown in the related list on the UI Policy, with a red dot indicating the issue:

find_real_file.png

When two UI Policies contain a UI Policy Action that acts upon the same field - even if they act upon different properties of that field (visible vs. read-only, for example) - they can potentially conflict.If you open the Action, you'll be presented with an error message indicating that the run order of the UI Policy Actions is unpredictable.

 

 

Please mark correct/helpful if my answer helps you out.

 

Regards,

Shubham

Regards,
Shubham Tipnis
 ServiceNow Enthusiast
️ 3x Rising Star (2022–2024) – ServiceNow Community
 Sharing insights, use cases & real-world learnings from the Now Platform
 Always learning. Always building.

View solution in original post

2 REPLIES 2

palanikumar
Mega Sage

Hi

UI Policies executes in ascending order. If two UI policies has same order, then it is random. You cant predict which one runs first.

For More details on UI Policy you can refer this URL

https://docs.servicenow.com/bundle/paris-platform-administration/page/administer/form-administration...

Thank you,
Palani

Shubham Tipnis
Kilo Sage
Kilo Sage

Hi Sanket,

 

The Order field sets the order of evaluation of UI Policy conditions for UI Policies for the same table.

The order of evaluation is from the lowest number to the highest number (ascending order). There might be a conflict when order of multiple UI policy is same.

Also, conflicting UI Policy Actions will be shown in the related list on the UI Policy, with a red dot indicating the issue:

find_real_file.png

When two UI Policies contain a UI Policy Action that acts upon the same field - even if they act upon different properties of that field (visible vs. read-only, for example) - they can potentially conflict.If you open the Action, you'll be presented with an error message indicating that the run order of the UI Policy Actions is unpredictable.

 

 

Please mark correct/helpful if my answer helps you out.

 

Regards,

Shubham

Regards,
Shubham Tipnis
 ServiceNow Enthusiast
️ 3x Rising Star (2022–2024) – ServiceNow Community
 Sharing insights, use cases & real-world learnings from the Now Platform
 Always learning. Always building.