What is the difference between a UI Policy and Data Policy?

Lei Wang3
Giga Expert
What is the difference between a UI Policy and Data Policy?
  • Data Policies run when data is entered through the form, by an Import Set, or by web services, while UI Policies are set only by web services
  • Data Policies can be converted into UI Policies, but UI Policies cannot be converted into Data Policies
  • Data Policies run regardless of how data is entered into ServiceNow, while UI Policies are used for form interactions
  • Data Policies run only after UI Policies run successfully

which is correct? I saw different answers on the web. A or C? I am confused, which one is correct. 

1 ACCEPTED SOLUTION

Hitoshi Ozawa
Giga Sage
Giga Sage

Hi Lei,

A is wrong because UI policies also is effective on forms.

B is wrong because Data Policy can be converted to UI Policy and UI Policy can also be converted to Data Policy.

https://developer.servicenow.com/dev.do#!/learn/courses/sandiego/app_store_learnv2_scripting_sandieg...

D is wrong because data passed from REST API won't be run UI Policy but Data Policy would still apply.

This leaves choice C.

 

View solution in original post

4 REPLIES 4

Mahesh23
Mega Sage

Hi, If I am not wrong B is correct

Hitoshi Ozawa
Giga Sage
Giga Sage

Hi Lei,

A is wrong because UI policies also is effective on forms.

B is wrong because Data Policy can be converted to UI Policy and UI Policy can also be converted to Data Policy.

https://developer.servicenow.com/dev.do#!/learn/courses/sandiego/app_store_learnv2_scripting_sandieg...

D is wrong because data passed from REST API won't be run UI Policy but Data Policy would still apply.

This leaves choice C.

 

thanks for the clear explanations!

Afrith Shariff
Tera Guru

All points are correct except UI policy can be converted to datapolicy and vice versa (if there is no scripting involved).