0

How can I find ParentId of ContentDocuments though I have enabled the Salesforce CRM Content?

1 Answer 1

1

To create a document, create a new version via the ContentVersion object without setting the ContentDocumentId. This automatically creates a parent document record. When adding a new version of the document, you must specify an existing ContentDocumentId which initiates the revision process for the document. When the latest version is published, the title, owner, and publish status fields are updated in the document.

ParentId (Object - ContentDocument) - ID of the library that owns the document. Created automatically when inserting a ContentVersion via the API for the first time. This field is available in API version 24.0 and later when Salesforce CRM Content is enabled.

Not the answer you're looking for? Browse other questions tagged .