UI POLICY & DATA POLICY

Payal Tripathy
Tera Contributor

What is the brief difference between UI Policy and Data Policy

3 REPLIES 3

Jayant_M
Kilo Sage

Hi @Payal Tripathy ,

 Please refer the below link 

https://developer.servicenow.com/dev.do#!/learn/courses/utah/app_store_learnv2_scripting_utah_script...

 

Please mark my response helpful if it resolves your issue!

Maddysunil
Kilo Sage

@Payal Tripathy 

UI Policy and Data Policy in ServiceNow are both used to apply restrictions on data entry within forms, but they have different purposes and functionalities:

  1. UI Policy:

    • Purpose: UI Policy is used to dynamically change the visibility, mandatory, and read-only properties of fields on a form based on predefined conditions.
    • Functionality:
      • UI Policies are primarily focused on enhancing the user experience by controlling the behavior of form fields.
      • They can be configured to show or hide fields, make fields mandatory or optional, and set fields as read-only or editable based on conditions evaluated during form interaction.
      • UI Policies are applied client-side and provide immediate feedback to users as they interact with the form.
  2. Data Policy:

    • Purpose: Data Policy is used to enforce data integrity rules and apply field-level constraints on data entered into ServiceNow records.
    • Functionality:
      • Data Policies are designed to enforce data governance and maintain data quality by applying restrictions on data entry at the database level.
      • They can be configured to validate and enforce data consistency rules, such as field length limits, data type constraints, and regular expression patterns.
      • Data Policies are applied server-side during record creation or update, ensuring that data adheres to predefined rules before being committed to the database.
      • Data Policies are especially useful for enforcing compliance requirements and ensuring that data conforms to organizational standards and regulations.

Please Mark Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.

 

Thanks

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Payal Tripathy 

 

https://www.servicenow.com/community/now-platform-articles/difference-between-data-policy-and-ui-pol....

 

 

In short 

 

UI policy work at form level, where Data policy too but in directly, when we insert data from 3rd party then data policy is more important role play.

*************************************************************************************************************
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]

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