Skip to content

Relations

Who can do this: repository admins define relations; every user sees related items they may read.

A relation links items that the folder tree cannot express: a contact and its account, a document and the opportunity it belongs to, an invoice and its order. You define it once as a relation definition: items of two document types are related wherever their fields hold the same value — across connections and sources too.

Relations never grant access: each user sees only the related items they may read. Users see them on an item’s Details under Related items, and can search within them; see Searching.

  1. Open Relations and choose New relation.
  2. Give it a Key — letters, digits, underscores, dot-separated; it never changes — a Name (what the to side’s items are, seen from the from side, such as Contacts) and an Inverse name (the other way round, such as Account).
  3. From: the document type and the matched field — a standard field (name or identity) or an attribute the type maps. To: the same for the other type.
  4. Match: exact, or ignoring case.
  5. Active: compute the keys now, then Create.

Matching on an ID field works best with an internal attribute: it is used for matching and never shown.

For record sources, the type’s page proposes relations from what the source knows: a database table’s Foreign keys and a Salesforce object’s Lookups, each with Create relation… opening this form with both sides filled in. Map the field first; nothing is created until you save.

The Relations page: each relation with its two sides, match and status

  • Rename it, change the match, or set it inactive to stop showing it. Activating it again recomputes it.
  • Relations a connector declares by itself can be renamed, never deleted.
  • A relation a hierarchy uses asks for confirmation before it is deactivated or deleted: the hierarchy levels using it go, with their group folders, and a Reason is required, which the audit log keeps. Otherwise the reason is optional. Through the API, repeat the call with ?confirm= and the impactToken, and a reason.

In the API

The Portal does this through these calls; an integration can make them directly.

OperationCall
Relation definitions, keyset-paged.GET /v1/admin/relation-definitions
Creates a relation definition between two document types; an active one computes its keys at once.POST /v1/admin/relation-definitions
A relation definition.GET /v1/admin/relation-definitions/{id}
Changes names, match or status; activation and a match change recompute the keys. Deactivating one hierarchy levels use answers 409 with the impact; repeat with ?confirm and a reason.PATCH /v1/admin/relation-definitions/{id}
Deletes an admin-created relation definition and its keys. One hierarchy levels use answers 409 with the impact; repeat with ?confirm and a reason.DELETE /v1/admin/relation-definitions/{id}