Skip to content
MyAppBuilder
StableField type

Link to entity

Overview

Links a record to one or many records of another entity — the customer of a job, the products of an order.

Purpose

This is how you connect your data: a Customers entity and a Jobs entity with a “Customer” link on Jobs lets you show the customer name on each job, list a customer's jobs and filter by customer.

Inputs

  • Created from the Add field dialog as Link to entity: choose the target entity and How many — one (each record links to one target), many (many ↔ many) or exactly one (one ↔ one). The link also appears in the Relationships diagram.
  • In forms, a Dropdown or Autocomplete with Load options from entity set to the target entity stores the chosen record id.

Configuration

  • Set the target entity's display field (for example Name) so links read well.
  • Use a Table or List on the customer page with a filter Customer equals Page parameters › id to show related records.

Outputs

  • Stored as the linked record id (rec_…) or a list of ids for “many”. Tables, cards and detail views show the linked record's display field (its title) instead of the id.

Example

Job → Customer

Example
Entity Jobs · Field: Customer · Type: Link to entity → Customers · How many: one
Example value: rec_8f2a…  →  shown as “Ada Lovelace”

Errors

  • “Customer: the linked customers record does not exist.” — the id points to a deleted or unknown record.

Limitations

  • Up to 500 linked ids for “many”. Deleting a record does not clear links pointing to it.
  • Links to external (connected) entities are stored but not validated.

Advanced

  • Field: { type: "relation", relation: { entityId, multiple } }; created by the create_relationship command with kinds onetoone / onetomany / manytomany. Single links are capped at 120 characters.

Related

Was this helpful?