The CreatorCon Call for Content is officially open! Get started here.

Change management

KamanaM
Mega Contributor

We have change module 

where in closure code is mandatory while closing any change, however while fetching details 

I found there are few users are able to close the record without selecting closure code 

Is this some license issue or what could be the reason and how we can fix this.

2 REPLIES 2

M Iftikhar
Giga Sage

Hi @KamanaM,

This behaviour is likely due to the difference between UI Policies and Data Policies in ServiceNow.

UI Policies are enforced only on the client side, meaning they apply when users interact with records through the standard UI (such as a form). However, if a record is being updated through server-side mechanisms such as scripts, integrations, workflows, or background processes then those UI Policies do not apply. This could be your case.

 

To enforce the field requirement regardless of how the record is being updated, you can create a Data Policy with the same conditions. Make sure to check Use as UI Policy on client option = true to ensures the policy applies both on the client and server sides.

 

To further investigate, I recommend reviewing the following knowledge base (KB) articles:

 

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution so others can benefit as well.

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @KamanaM 

Please check if you have a UI policy applied on the Closed Code field. If it's marked as mandatory, then it should be enforced for all users—unless the record is being closed via a script.

Technically, if a UI policy is in place, it should not allow users to close a Change without providing a Closed Code.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************