Validating information

Another use of before business rules is to validate data. If you find information that is wrong or missing, you can tell the platform not to commit the action to the database.

One of the big issues with our hotel application is that you can check in to a room multiple times. There is nothing to prevent the allocation of the same room to several different people!

Let's expand the Check-in table slightly to include more information:

  1. Navigate to Hotel > Check-ins, and click New to open the form.
  2. Click the additional action menu icon and choose Configure, then Form Design.
  3. Click the Field Types tab on the left, and drag in a new Date field. This represents the date on which the check-in happened. Click the cog next to ...

Get ServiceNow: Building Powerful Workflows now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.