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
| When | Runs | Typical use |
|---|---|---|
| Before | Before the record is saved to the database | Change or check values on the current record, such as filling a field |
| After | After the record is saved | Update related records, such as child tasks |
| Async | After the record is saved, in the background | Slower work that the user should not wait for, such as calling another system |
| Display | Before a form is shown | Pass 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.
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.
Step 3 · Check
Exam-style questions
Select an answer and check it. Every answer includes an explanation.