Lessons › Domain 6: Data Migration and Integration (13%) › Lesson 28

Business Rules

About 15 minutes · Last checked against the CSA blueprint (January 2026): 3 December 2026

Step 1 · Learn

Logic that runs on the server

A business rule is server-side logic that runs when a record is displayed, inserted, updated, deleted or queried. Because it runs on the server, it applies however the change is made: through a form, an import, an integration or a script.

When a business rule runs

WhenRunsTypical use
BeforeBefore the record is saved to the databaseChange or check values on the current record, such as filling a field
AfterAfter the record is savedUpdate related records, such as child tasks
AsyncAfter the record is saved, in the backgroundSlower work that the user should not wait for, such as calling another system
DisplayBefore a form is shownPass server data to client scripts through a scratchpad

Conditions and actions

A business rule has filter conditions that decide when it runs, such as Priority changes to 1 - Critical. Simple rules can set field values or show a message through the Actions tab without code. More complex rules use a script.

Good practice

  • Use a before rule to change the current record; it is saved anyway, so no extra update is needed.
  • Use an after or async rule to change other records.
  • Use conditions so the rule runs only when needed, which keeps the instance fast.
  • Prefer flows in Workflow Studio for processes that business users should be able to follow and change.
Exam tip: before or after?Changing a value on the record being saved: before. Changing other records as a result: after (or async if it can wait).

Step 2 · Do

Automate with business rules

Acme wants some logic to run on the server whenever incidents change. This is a practice environment of our own design, not the ServiceNow product. Complete the tasks in the task list.

script-console

Step 3 · Check

Exam-style questions

Select an answer and check it. Every answer includes an explanation.