function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
PamSalesforcePamSalesforce 

Upload content in Salesforce

Hi,

 

I am trying to upload content (SFDC Content, object: ContentVersion/ConentDocument) in saleforce using dataloader. I also have comments associated to these documents that i wanted to upload, but i don't see an option of how i can upload the comments into the DocumentComment that is displayed on the content detail page.

 

Any help will be really appreciated.

 

Thanks,

Pam.

AdrianCCAdrianCC

Hello,

 

You'll need to use the FeedComment standard object. Set the Comment Type to "ContentComment" and the RelatedRecordId to the coresponding ContentVersion. Link: http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_feedcomment.htm

 

Thanks,

Adrian 

PamSalesforcePamSalesforce

Hi Adrian,

 

This would work if the document was posted on chatter. I want to upload document into ContentDocument and then add comment to it. The comments that would appear when you view the document from the content tab (rigth side of the content detial page has tab for Comments)

 

Thanks,

Pushpi.