O'Reilly logo

Mastering ServiceNow - Second Edition by Martin Wood

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Enforcing data

Earlier in this chapter, we explored how Business Rules can validate information, ensuring that data is consistent and appropriate. For example, we ensured that departure dates are always after arrivals. However, writing a script for every situation is an administrative overhead. Reduce it by using a data policy, which allows definitions to be made without writing a single line of code.

Tip

Data Policies are another of the point-and-click functionalities available. Try to data policies when possible, and use Business Rules otherwise.

Data policies enable you to specify whether fields in a table should be mandatory or read-only under certain conditions. The conditions can only apply to the current record, which means the script that ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required