cancel
Showing results for 
Search instead for 
Did you mean: 

Download file from Salesforce using API

MetVonghiran
Level 4

Hello,

I would like some advice regarding how to download a file from Salesforce to local folder.

I'm using the BP Skill "Salesforce" to obtain the ContentDocumentId. 

I use the following "GET" API to retrieve the base-64 from Salesforce

/services/data/v47.0/sobjects/ContentVersion/[Id]/VersionData

I'm stuck with how to convert the response content to a physical file.

I figure I have to use the code stage to convert the data, but I'm not quite sure how to achieve it.
Any help would be highly appreciated.

Best Regards

Met Vonghiran



------------------------------
Met Vonghiran
Consultant
Deloitte
Asia/Tokyo
------------------------------
1 REPLY 1

Hello Met,

Would you be able to show me the JSON or other language response that you get from the call so that I can see what you can see if it is blueprism or if you are using Postman to trial these API calls?

Best Regards


------------------------------
Ronan Considine
------------------------------
Ronan Considine Senior Business Analyst Blue Prism