How View Rules function

RahulY00040
Tera Contributor

Hello friends, 

 

We had created a custom View Rule against the cmdb_ci_win_server table and it had been working just fine. Recently we installed one of the OTB module and got additional form view rule against the same table. Now the second view rule started imposing overriding the first. 

 

I can not even disable the second one as it has "Protection Policy". Changing the execution order of earlier to 75 from 100 not working. Its giving me unpredictable results. 

 

So, i would like to understand below:

1. How View Rules are executed ?

2. How View Rules execution order is defined ?

3. Also URL when copied from address bar shows later (lower priority) view applied but loaded form shows first one. Something is missing.

 

 

Thanks,
Rahul

7 REPLIES 7

Voona Rohila
Kilo Patron
Kilo Patron

Hi @RahulY00040 

If multiple advanced View Rules are configured for a table, only one will be evaluated (lowest Order) - Is this not working?
You can update your rule order to lesser number than the other rule and test it.
Check the info message in below screenshot.
VoonaRohila_0-1726174448887.png

 

 

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Hi @Voona Rohila ,


Thanks for your quick response and checking. Above is not working . Please find my below observation:

 

1. URL when copied from address bar shows later (lower priority) view applied but loaded form shows first one. Something is missing.

 

Any thoughts.

-Rahul

 

Can you check if there are any other client scripts are forcing the view?


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

Make sure Your Main view has lowest order (10) and the OOTB one more than 10.


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP