How's it going? We worked together briefly years ago on a project. Do you have any examples of downloading the VersionData of a ContentVersion object using the Android Mobile SDK? I can assemble the appropriate URL after querying the ContentDocument and ContentVersion objects but then I can't complete the download due to not having a valid Salesforce session.
Good to hear from you. Unfortunately, I don't have any public examples, but you'll need to have a valid access token included in the REST API request in order to access ContentVersion records.
I figured that out finally and found where I could access it from the Mobile SDK. I'll writeup my approach when I get it cleaned up as it looks like a common unaswered type of question out there.
It is possible to download attachments via the REST API, yes.
It´s some documentation or something that i can use of base to do it
http://www.salesforce.com/us/developer/docs/api_rest/Content/dome_sobject_blob_retrieve.htm?SearchType=Stem&Highlight=Attachment|attachment
Hey Tom,
How's it going? We worked together briefly years ago on a project. Do you have any examples of downloading the VersionData of a ContentVersion object using the Android Mobile SDK? I can assemble the appropriate URL after querying the ContentDocument and ContentVersion objects but then I can't complete the download due to not having a valid Salesforce session.
Ed Elliott
Durham, NC
Hi Ed,
Good to hear from you. Unfortunately, I don't have any public examples, but you'll need to have a valid access token included in the REST API request in order to access ContentVersion records.
Tom
Thanks Tom,
I figured that out finally and found where I could access it from the Mobile SDK. I'll writeup my approach when I get it cleaned up as it looks like a common unaswered type of question out there.
Ed