what is the difference between UI policy and data policy?

SNnewbie2
Tera Expert

I know UI policies can hide or show diplays, or you can make any field mandatory as well. But I dont know what is a data policy? Can I have screenshot of examples of data policy?

15 REPLIES 15

adilrathore
ServiceNow Employee
ServiceNow Employee

UI policies are used to dynamically change content of forms whereas data policies are used to enforce data consistency.



UI policies



Data policy


Raghu Loganatha
Kilo Guru

Claudia,



Major differences between UI policies and Data policy are that UI polices work only when user opens the form( This is on form). Where as Data policy is different and it even works on the inbound email.



Here is the definition from ServiceNow wiki:
Data policies enable you to enforce data consistency by setting mandatory and read-only states for fields. Data policies are similar to UI policies, but UI policies only apply to data entered on a form through the standard browser. Data policies can apply rules to all data entered into the system, including data brought in through email, import sets or web services and data entered through the mobile UI.



For more info:
http://wiki.servicenow.com/index.php?title=Data_Policy#gsc.tab=0  



Please mark "HelpFul" or "Correct" if this answers your question.


        I understand. Do you have any screenshot picture of Data policy?


They are present under system policy. Below is the screenshot of sample data policy > rules > data policies



Capture.PNG


Yeah I see. But I don't understand the usage.


For example UI policies can make field mandatory or visible.


So Data policies are applied where? I dont quite get it. sorry