Appearance
Return
Link records from different tables
Create relationships between tables and use linked records in your interface and APIs.
Steps at a glance
- Decide what you want to link (one-to-one, one-to-many, or many-to-many).
- Create a relationship column between your tables.
- Create records and link them together.
- Retrieve linked records in your interface (or from an API).
1) Decide what you want to link
Before you add a relationship, clarify how the data should connect:
- One-to-one — One record links to one record (for example,
User→Profile). - One-to-many — One record links to many records (for example,
Customer→Orders). - Many-to-many — Many records link to many records (for example,
Students↔Courses).
2) Create a relationship between two tables
Example: Customers and Orders (one customer can have many orders).
- Open
Data & API → Tables. - Open the table you want to edit (for example
Orders). - Create a new column and choose a relationship type.
- Select the other table you want to link to (for example
Customers). - Name the relationship (for example
Customer). - Save.
3) Create and link records
- Create a
Customerrecord. - Create an
Orderrecord. - In the
Orderrecord, set theCustomerfield to the customer you created.
Now each order is linked to a specific customer.
4) Use linked records in your interface
There are two common ways to use linked records:
Option A: Retrieve records with a view
- Create a view for the table you want to show (for example
Orders). - Add any filters you need (for example “Only show orders for the current user’s customer record”).
- In your interface, retrieve the view and repeat items over the results.
- Display fields from the linked record (for example show the order’s customer name).
Option B: Retrieve records from an API
Use an API when you need custom filtering, validation, or secure logic.
- Create an API in
Data & API → APIs(for exampleGET /orders). - Retrieve the records you need.
- Return the records to the interface and repeat items over the response.
Common pitfalls
The relationship field is empty
- Make sure you actually set the relationship field when creating or updating the record.
You chose the wrong relationship type
- If one customer should link to many orders, use a one-to-many relationship (not one-to-one).
Records appear but the linked data is missing
- Check that the records are truly linked (open a record and confirm the relationship field has a value).
- If you are using a view, confirm the view includes the columns you need.

