An entity context wraps a region of an Experience so that descendant blocks (Input, Button, and Text blocks) can read from and write to the same underlying Record. Configure it from the Entity Context section of the block settings panel on any block that supports the entityContext prop (such as Box, Button, or Link blocks).
Open the Entity Context section of the block settings panel. With the toggle enabled you can configure:
The Lookup selector chooses how the Record is loaded:
Mode | Meaning |
|---|---|
None | The entity context is in-memory only. |
By Id | Reads a Record ID from a datum reference (for example, a URL parameter or parent query result) and fetches that Record. |
By Query | Runs a filter against the Schema and uses the first match. If no Record matches, the entity context enters the |
Switching modes preserves the configuration for the side you switch back to whenever possible (an existing query filter is kept while you visit By Id mode, for example).
The By Query mode reuses the same filter builder used by query blocks, so any combination of property and relationship filters is available.
Field overrides are an ordered list of { mode, schemaPath, value } entries.
new state. The user can still edit the field.For each row you can:
contextValue.When the lookup is in By Query mode, a From Query button appears next to Add. It inspects the current filter and proposes enforce overrides derived from it:
Filter shape | Generated override |
|---|---|
|
|
|
|
|
|
The button opens a preview popover showing:
schemaPath is already configured. Existing hand edits are never silently overwritten — you can remove the conflicting row first if you want the derived value to win.Click Append N to apply, or Cancel to discard.
Earlier versions stored the lookup as lookupEntityById / lookupEntityByIdSource. These are converted automatically to the lookup: { mode: "id", idSource } shape, and the editor saves the new shape on the next write. No manual migration is required — opening and saving any affected Experience is sufficient.