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
h0llyh0lly 

retrieve Comment attachment

When I retrieve data for Chatter I do not get data on any files/images attached to a comment.

 

I get

 

parent {id  and url}
id
clientinfo
user{name, title,companyName, firstName, lastName,mySubscription, isChatterGuest, photo (large and small}, id, url, type}
body{text, messageSegments}, feedItem, deletable, url, createdDate

 

 

Am I missing something or is this by design?

Best Answer chosen by Admin (Salesforce Developers) 
alouie_sfdcalouie_sfdc
I suspect that you're using API version 23.0. File attachments on comments are supported in v24.0 and higher. You'll see an "attachment" property in the payload that will have all of the information about the file.

Here's where it's documented:
http://www.salesforce.com/us/developer/docs/chatterapi/Content/connect_returns.htm#cc_comment

All Answers

jody_blyjody_bly

How are you retrieving data? 

spatelcespatelce

What is size of your attachment in comment? It is limited to size max 2.5 mb (not 25 mb).

alouie_sfdcalouie_sfdc
I suspect that you're using API version 23.0. File attachments on comments are supported in v24.0 and higher. You'll see an "attachment" property in the payload that will have all of the information about the file.

Here's where it's documented:
http://www.salesforce.com/us/developer/docs/chatterapi/Content/connect_returns.htm#cc_comment
This was selected as the best answer
h0llyh0lly

thanks. v24 did the job. many thanks