What is the difference between Data Policy and Business Rules?

ram2497
Tera Contributor

What is the difference between Data Policy and Business Rules?

 

Thanks

Ram

2 REPLIES 2

Harish Vaibhare
Kilo Guru

Hi Ram,

there is no comparision between data policy and business rule because both are different.

Data Policy :

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 import sets or web services and data entered through the mobile UI.

we can make the field read only and mandatory using data policy.

Link : https://docs.servicenow.com/bundle/orlando-platform-administration/page/administer/field-administrat...

 

Business rule :

A business rule is a server-side script that runs when a record is displayed, inserted, updated, or deleted, or when a table is queried.

Link :https://docs.servicenow.com/bundle/orlando-application-development/page/script/business-rules/concep...

 

Kindly mark helpful and correct if it is useful.

Thanks.

Bhagyashri Sort
Kilo Guru

Hi,

 I think there is no any relation between BR and Data Policy to compare both. UseCase is different in both the cases.

BR is used during before or after inserting and updating of data, to perform the async operation.

Data policy is used when you what to make the field value mandatory, field should have a value, like UI Policy if field is mandatory and you won't pass the value then form won't get submitted and  if you apply the data policy then record won't get created in DB.

Refer below links

Data Policy

Business Rule  

 

Mark it correct and helpful.

Thanks

Bhagyashri Sorte.