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
victor92victor92 

Download attachments

I want know if its possible to download or to make a visor of objects attachments of my cloud in my native applicacion in xcode

Tom GersicTom Gersic

It is possible to download attachments via the REST API, yes.

victor92victor92

It´s some documentation or something that i can use of base to do it

Ed ElliottEd Elliott

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

Tom GersicTom Gersic

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

Ed ElliottEd Elliott

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