Using a business rule to trigger events

The following steps show you how to create a business rule:

  1. In Studio, open the Create New Application File wizard, select Server Development | Business Rule, and click on the Create button to open the new Business Rule record form.
  2. Populate the form with the following values:
    • Name: Monitor changes to assigned to field
    • Table: Booking Request
    • Active: Checked
    • Advanced: Checked
    • When: before
    • Order: 200
    • Insert: Unchecked
    • Update: Checked
  • Filter conditions:
    • Assigned to | changes
    • Assigned to | is not empty
  1. Navigate to Advanced tab | Script:
  2. Write the following code in the Script field:
 (function ...

Get ServiceNow Application Development 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.