+ 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.