- Organizing
- Linking records
Linking records
Link a record to others, such as a task to its project or a contact to their company, and see the link from both sides.
A Relation field links a record to other records. A task links to its project, a job posting to its company, a note to the articles it draws on. The link shows on both sides: the project lists its tasks, and each task names its project.
Adding a relation field
Add a field to a type as you would any other and choose Relation as its field type. Then set:
- Links to. The type of record the field links to, such as Project for a field on Task. A relation links to one type, which can be the field's own type (Related notes on Note).
- Relationship. How many records each side can hold. See the table below.
- Field to use as records name. The field that names the linked type's records on their chips, such as a company's Name. It starts on the type's Title, or its first field that can name a record.
- Name on the linked type. A relation on a type always gets a matching field on the other type, so the link shows from both sides: Employer on Job, Jobs on Company. This names that second field.
The four relationships:
| Relationship | Example: a Job's Employer field linking Companies |
|---|---|
| One to one | Each job links one company, and a company belongs to one job |
| One to many | Each job links many companies, and a company belongs to one job |
| Many to one | Each job links one company, and a company has many jobs |
| Many to many | Each side links many |
A relation added as a global field is one-way: its records are of every type, so there is no single type for the other side to sit on.
Links to can change only while no record holds a link. Making the relationship stricter keeps the links you already have.
Linking a record
In the record form, click the relation field and start typing. Faved lists the matching records of the linked type. Pick one to link it, pick it again to take it out, or remove a link with its ×. In a field that holds one record, picking another replaces it.
The matching field on the other record shows the same link, so you can add it from either side.
Making a record to link
If the record you want doesn't exist yet, make it without leaving the form:
- From the search. Type a name that matches nothing and the list ends with Create “Globex”. Choose it, and Faved makes a record of the linked type with that name and links it.
- With the + beside the field. It opens the full record form over the one you're editing, set to the linked type. Fill it in and save, and the new record is linked in the form underneath.
Either way the link is saved when you save the form you started from.
In the list
A relation's column shows the linked records as chips, and clicking a chip opens that record. Sorting goes by their names, and the search box finds a record by the names it links to.
Filtering by a linked record
A relation field filters like a select field. Tick the linked records by name and choose the condition: has any of, has all of, has none of, is exactly, is not exactly, is empty or is not empty. Filter tasks to one project, or find the contacts with no company yet. Moved to the sidebar, the filter lists the records with a count beside each.
Examples
| Type | Relation field | Links to | Relationship |
|---|---|---|---|
| Task | Project | Project | Many to one |
| Contact | Company | Company | Many to one |
| Note | Sources | Article | Many to many |
| Job posting | Contacts | Contact | Many to many |
Good to know
- Deleting a record removes its links. The records it was linked to stay.
- Deleting a relation field deletes the matching field on the other type and every link between them.
- Relation fields aren't filled by Autofill, can't be set for many records at once with bulk actions, and aren't part of CSV import and export yet.