---
schema_version: "1"
id: 2ca13aba2b1569b4115fcd19c4078d9b6d999d28ac5c06ff70859e9569c939d0
title: ContentDocumentSubscription
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_contentdocumentsubscription.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_contentdocumentsubscription.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d8fcd65c893806f8dbbaa34c71ee5fc5a262bad2daa4c1bc9e56318949b3971d
description: Represents a subscription for a user following or commenting on a file in a library. This object is available in API version 42.0 and later.
---
# ContentDocumentSubscription

Represents a subscription for a user following or commenting on a file in a library. This object is available in API version 42.0 and later.

## Supported Calls

delete(), describeSObjects(), query(), retrieve()

## Special Access Rules

Only users with Modify All Data permission have access to this object.

## Fields

| Field | Details |
| --- | --- |
| ContentDocumentId | 
Type

reference

Properties

Filter, Group, Sort

Description

ID of the file.

This is a relationship field.

Relationship Name

ContentDocument

Relationship Type

Lookup

Refers To

ContentDocument



 |
| IsCommentSub | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Specifies whether the user made comments on the file.



 |
| IsDocumentSub | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

Specifies whether the user follows the file.



 |
| UserId | 

Type

reference

Properties

Filter, Group, Sort

Description

ID of the user following or commenting on the file.

This is a relationship field.

Relationship Name

User

Relationship Type

Lookup

Refers To

User



 |