Document types and hierarchy
Who can do this: repository admins.
A document type is a kind of item a source has: File, Folder, Email, a SharePoint content type, a Salesforce object such as Account, a database table. The connector describes the types its source offers and their fields; you define the ones you want, so their items get attributes.
Items of an undefined type are still found, by name and text, but have no attributes.
Define a type
Section titled “Define a type”
- Open the connection and its Document types. Each offered type shows whether it is defined; This type describes people marks types such as contacts or users.
- Choose Define…. A type the connector reports the same way everywhere, such as File, can be defined once for every connection of the connector; others for this connection.
- Map its fields; see Attributes.
Standard fields of record types
Section titled “Standard fields of record types”Every item has standard fields: an identity, a name, created and modified dates and users. Files and messages bring them by themselves. For record sources — Salesforce objects and database tables — the definition says which fields supply them, under Standard fields. ContentSurface proposes them: the primary key, a name field, the dates, a change marker (a row version or modification time from which changes are read every few minutes) and fields to exclude — never read, such as large or sensitive columns. The name can join up to three fields. A parent field arranges a table’s rows into a tree, such as categories with their parent category.
Such a type must be defined before a mount point lists it. Changing its
identifying fields, its content field or its parent field later gives every
item a new identity: the rescan that saving requests replaces the type’s items, and access set
on them is lost. Confirm with a Reason, which the
audit log keeps. Through the API, the change answers
409 confirmation-required with the impact; repeat it with ?confirm= and
the impactToken, and a reason.
Hierarchy: records below records
Section titled “Hierarchy: records below records”A hierarchy shows each record of a type as a folder, with group folders below it holding related records — an account with its Contacts, Opportunities and their files; a customer with its orders and invoices. Each level uses a relation definition within the same connection.
- Open the connection’s Hierarchy for the root type, such as Account.
- Add level: choose the relation definition (Related by) and the Group folder name, such as Contacts. Add nested level for records below those.
- Save. It takes effect within minutes: saving rescans the connection’s mount folders.
An owned level — such as an order’s lines — holds records that exist only below their parent: they take its access, cannot have access of their own, and are found in search as the parent. Where the source says a record belongs to its parent — a Salesforce master–detail field, or standard details such as opportunity products and quote lines — Owned is ticked for you when you choose the relation; save it, or untick it to keep those records on their own too. A lookup, such as an opportunity’s account, is never proposed: an opportunity has its own owner and access.
Structure on the connection shows each type’s role in the hierarchy and explains why a change is refused.
To show records without their hierarchy below one mount folder, switch off Expand hierarchies in its filters.
Removing levels
Section titled “Removing levels”A level keeps its group folders, and the access set on them, across edits as long as it stays in place. Removing a level — Remove level and Save, or moving it below another level — and Delete of the whole hierarchy remove group folders: the rescans this requests delete them with the related records shown in them, any access set on those group folders included, and the levels nested below them go too. Like anything a scan deletes, they are kept as deleted items for the retention period and then removed for good; a level added back through the API with its old key before then brings its group folders back with their access.
So both ask for confirmation first: the dialog lists the levels that go, their nested levels, and how many of their group folders have access of their own. Confirm with a Reason, which the audit log keeps. Adding levels, renaming group folders or changing a level’s relation needs no confirmation.
Through the API, the call answers 409 confirmation-required with the
impact; repeat it with ?confirm= and the impactToken, and a reason.
Troubleshooting
Section titled “Troubleshooting”- A detail type exists only below its master: an owned level’s records cannot have a mount point of their own.
- The hierarchy has no levels left: a relation definition it used was deactivated or deleted.
- Group folders do not appear: they appear with the rescan that saving the hierarchy requests, usually within minutes, and only where there are related records.
In the API
The Portal does this through these calls; an integration can make them directly.