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
kamal3883kamal3883 

Attaching files to Chatter posts through Rest API

Hi,

Can anybody help me on this one:

1) i want to upload files to Chatter posts through rest api only way for this one is using binary files but how can we upload PPT or doc using binay files.
2) In same way is there any way to reterive files directly from chatter posts instead of going to content.
alouie_sfdcalouie_sfdc
1. Please see the documentation here: http://www.salesforce.com/us/developer/docs/chatterapi/index.htm

2. When you get a post that contains a file attachment, it has a downloadUrl property that you can use to download the file directly. Is that what you're asking? All of the properties for the content attachment are documented here:

http://www.salesforce.com/us/developer/docs/chatterapi/Content/connect_responses_feed_item_attach_content.htm