Alteryx Designer Discussions

Find answers, ask questions, and share expertise about Alteryx Designer.
Andy Uttley, Alteryx ACE, makes music with Alteryx | Math + Music

How to download the attachment from Salesforce attachment table.

5 - Atom


I have a requirement where I need to download the attachment from Salesforce. I ran the query from the Attachment table. I can see the details like file name, etc from the below column.



I am not sure how to download the files or retreive the data from the file name.


I'm not sure if attachments can be downloaded directly from the SalesForce input tool (someone please correct me if this is possible). However, SalesForce has the SObjects API endpoints where attachments can be downloaded from: 


Here is an example of using this endpoint for pulling an attachment: 


This Alteryx link covers how to do it: 




This comment in particular: 


001a000001JsueBAAX00Pa000000cuTnJXXX Cover.jpgimage/jpeg


  • Then get your Bearer access token
  • Your image_url will be [instance_url]+[Body] or



So I think that you could pull the authentication step out of the deprecated SalesForce macro to get your bearer token and then pass that into a subsequent download tool to pull all of the files that you need.