Loading

Inserting a new ContentVersion via the API

Дата публикации: Oct 13, 2022
Описание
In order to insert a new version of existing content. We need to specify the following four fields during an Insert call on Content (ContentVersion):
 
 
Решение
 
1. ContentDocumentId
2. ReasonForChange
3. PathOnClient (path of the file on the client machine)
4. VersionData
(path of the file on the client machine)

Also, keep in mind that "FirstPublishLocationId" field can only be set for the first version of a document and need not be set when a next version of the content has to be published. 
Номер статьи базы знаний

000385651

 
Загрузка
Salesforce Help | Article