Skip to content

Reference Relations

Reference attributes allow you to connect entities across different templates, creating relational links similar to foreign keys in relational databases or linked records in relational spreadsheets.


Source TemplateReference FieldTarget TemplateExample Relational Link
Support TicketCustomerCustomer AccountTicket #104 → ACME Corp
Server NodeData CenterFacilityprod-db-01 → US-East Region
Order RecordPurchased ItemProduct CatalogOrder #5021 → Wireless Headphones
IncidentAssigned LeadTeam MemberIncident #88 → Jane Doe

When you configure a Reference attribute:

  1. Target Template: You specify which template’s entities can be selected (e.g. Customer Account).
  2. Target Display Attribute: You select which field from the target template will serve as the human-readable label in selection dropdowns and summary tables (e.g. Account Name).
flowchart LR
subgraph Support Ticket Entity
T1["Ticket #104"]
T2["Status: Open"]
T3["Priority: High"]
end
subgraph Reference Link
T1 -->|References| C1
end
subgraph Customer Account Entity
C1["ACME Corp"]
C2["Contact: Jane Doe"]
C3["Tier: Enterprise"]
end

  1. Navigate to Data Modeling → Attributes.
  2. Click + Create Attribute.
  3. Set Name (e.g. Assigned Customer).
  4. Set Attribute Type to Reference.
  5. In the Reference Configuration panel:
    • Select Target Template: Choose the template containing target records (e.g., Customer Account).
    • Select Target Attribute: Choose the attribute to display in dropdown lists (e.g., Company Name).
  6. Click Save Changes.
  7. Attach the Assigned Customer attribute to your source template (e.g. Support Ticket).

Reference attribute configuration showing target template and display attribute selection


3. Working with References in Entity Forms

Section titled “3. Working with References in Entity Forms”

Once a Reference attribute is attached to a template:

  • When creating or editing an entity, a searchable lookup dropdown appears populated with matching target entities.
  • On the entity details page, clicking a reference link navigates directly to the target entity’s full details.
  • In entity search tables, you can filter records by linked references (e.g. Show all Support Tickets where Customer = ACME Corp).

[!NOTE] Relational Integrity & API Querying: References store the target Entity UUID. When querying entities via OpenAPI (GET /api/v1/entity/template/{templateId}), reference IDs are resolved efficiently without expensive SQL N+1 query overhead, providing both the raw entity ID and resolved display attribute values.


[!TIP]