ContentDocumentLink
Links Content Documents to multiple records, allowing files to be associated with various objects.
Table Specific Information
Select
The Salesforce server requires filtering on Id, ContentDocumentId, or LinkedEntityId to perform the query.
Either of the following operators can be used when creating a filter or WHERE clause. For example:
SELECT * FROM ContentDocumentLink WHERE Id = 'your value' SELECT * FROM ContentDocumentLink WHERE ContentDocumentId = 'your value' SELECT * FROM ContentDocumentLink WHERE LinkedEntityId = 'your value'
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
Unique identifier of the content document link record. | |
| LinkedEntityId | String | False |
ID of the record (such as a user, group, or object) the content document is linked to. | |
| ContentDocumentId | String | False |
ID of the content document associated with this link. | |
| IsDeleted | Boolean | True |
Indicates whether the link record has been deleted (true) or not (false). | |
| SystemModstamp | Datetime | True |
Date and time when the link record was last modified. | |
| ShareType | String | False |
Level of access granted to the linked entity. For example, 'V' for viewer, 'C' for collaborator, or 'I' for inferred permission. |