Skip to content

This page is for builders designing the entities of an application. It collects the decisions that keep data correct and easy to report on: what deserves its own entity, when to link and when to copy, when a Block is enough, and when an index helps. Each section links to the feature guide that has the steps.

An entity holds one kind of record. A good test: every record of the entity goes through the same life — the same form, the same workflow, the same people.

  • When two kinds of record share most fields but follow different processes — purchase requests and leave requests — make two entities, each with its own workflow.
  • When one record keeps growing columns that only apply in some cases — Car plate that only matters for vehicle requests — the entity is probably holding two kinds of record.
  • Design the status model with the workflow, not against it. If the stages of a record are its workflow steps, let the status follow the steps — see Request and ticket lifecycle.

Store each fact in one place and link to it. A reference field stores which record was picked, not its text, so the link stays right when the linked record changes — see Link entities.

Sometimes a record needs a value from the linked record on its own form, in its own list or in a report. A mapped field copies it, and its Update Mode decides whether the copy follows the source:

You need…Update Mode
The value as it is now, always matching the source — a product’s current support level on an open ticketFrom Parent Only
The value as it was when the record was created — the price on a signed orderNever
A starting value people may adjust on this record onlyLocal Update
The same value on both records, editable from either side2 way (use rarely)

Decide “now or as it was” per field, with the business, before you build: it is a business rule, not a display detail. The steps are in Choose an update mode.

Avoid keeping a running total in a field that reactions add to and subtract from. It drifts the first time a reaction fails or a record is archived. Instead:

  • count and sum with statistic queries, which feed summaries, dashboards and counters and leave archived records out — see Dashboards & summaries;
  • show totals and groups in a list with Aggregates and grouping Since 1.10;
  • for a value worked out from the record’s own fields — quantity × unit price — use a calculated default value on a locked field.

A Block groups fields inside a record; a repeatable Block gives the record rows of its own — see Block field.

Choose a Block when the rows…Choose a separate entity when the rows…
Exist only as part of the parent and are entered with itHave their own lifecycle, workflow or approval
Are never reported on, listed or searched on their ownNeed their own list, query, report or dashboard
Share the parent’s accessNeed different people to see or edit them
Stay few per recordCan grow without limit

Master-detail works through both forms.

Archiving is the everyday way to remove a record: it leaves the active lists, keeps its history and can be restored. Permanent deletion is a separate, rare decision for retention rules. Plan for it in the data model — which records are archived, when and by whom. The full pattern is Archive, don’t delete.

Add an index for large, busy lists Since 1.10

Section titled “Add an index for large, busy lists Since 1.10”

The platform indexes what it needs automatically. Add a custom index on the entity’s Indexes tab when a large entity is filtered or sorted all the time by fields the automatic indexes do not cover, or when a combination of fields must be unique — one booking per room per day.

  • Put the field people filter on most first; an index takes one to eight fields.
  • An entity takes up to 10 custom indexes. Add them for real, frequent filters, not “just in case”.
  • To make an optional field unique only when it is filled in, use a unique index with a partial filter — the recipe is in Speed up large lists with an index.
  • If an index shows Failed, existing records break its rule: fix the data, then select Retry.
  • The Indexes tab is not offered for core-module, request (service) and virtual entities, and it is read-only on an entity installed from a package. Plan large request volumes with filters and queries instead.

Worked example: adding Products to Customer Support

Section titled “Worked example: adding Products to Customer Support”

The Customer Support tutorial stores everything on Support Tickets. A natural next requirement — each ticket names the product it is about, and shows the product’s support level — is a good test of the rules above. (This extension is not part of the tutorial; the ACD — Certified Developer course builds it as a lab.)

  1. Is a product its own kind of record? Yes: products are maintained by someone else, outlive any ticket and need their own list. Create a Products entity, normalized name product.
  2. Link it. Add a Reference field Product on Support Tickets, pointing at Products, one record only.
  3. See it from the other side. On Products, add an Incoming relation Tickets, so each product lists its tickets.
  4. Copy deliberately. Add a Mapped field Support level following Product. Now ask the business: if a product’s support level changes, should an open ticket show the new level, or the level it was opened with? If deadlines or reports depend on it, that answer is a business decision. As it is now means From Parent Only; as it was means Never.

The Solution and Service evaluation on the same ticket stay Blocks: they exist only as part of the ticket and nobody reports on them alone.

  • Free text where a list belongs. Department typed by hand gives you HR, H.R. and Human Resources in one report. Use a reference to a list or an entity. See Link, look up, or combine?.
  • One giant entity. Eighty fields, half of them hidden by conditions, usually means several kinds of record in one entity. Split by lifecycle.
  • Copying values by hand between entities. If people retype the employee’s department on every request, use a mapped field and choose its update mode.
  • A stored running total. Use statistic queries or aggregates instead.
  • Unique on an optional field. The second empty record is refused. Use the unique-when-filled index recipe instead of Unique.
  • Indexes “for safety”. Every index has a cost when records are saved. Index the filters people really use.

Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27