---
title: "Record rules that hold at every door | SalexHub"
description: "Say what a record must have when a condition is true. Every save meets the rule: on screen, by the Agent, through the API, in an import or a workflow."
url: "https://salexhub.com/platform/data-model/record-rules"
---

# Set a rule once. It holds at every door.

A record rule says what a record must have when something is true of it. It is checked on every save, whether the record is typed in, written by the Agent, sent through the API, imported or changed by a workflow.

[Start free](https://app.salexhub.com/register) · [Properties](https://salexhub.com/platform/data-model/properties.md)

The save is refused in the rule's own words, where the change was made.

## A rule in four parts

- **When.** Conditions on the record's own properties, such as a status of Done.
- **Then.** Require properties, allow only some options, or refuse the save with your message.
- **Checked.** On every save, or when a record is created.
- **Applies to.** People and agents, agents only, or the agents of other companies.

Where it holds: On screen, The Agent, The API, An import, A workflow.

Before you turn a rule on, check the records you already have against it. Up to 100 rules on each kind of record.

[Privacy](https://salexhub.com/platform/data-model/privacy.md) · [Properties](https://salexhub.com/platform/data-model/properties.md)

---

The same page for people: https://salexhub.com/platform/data-model/record-rules. Index of this site for agents: https://salexhub.com/llms.txt
