On this page
Unleash your genius.
Get genius ideas, actionable tips, and smart solutions in your inbox once a month.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

How to Send File Uploads (Attachments) to Salesforce

October 10, 2014
Min Read

A common question we get regarding our Salesforce integration is if it’s possible to send file uploads (attachments) to Salesforce. This is possible by integrating with Salesforce’s “Attachment” object. Attachments can be linked to many other Salesforce objects: Account, Leads, Opportunities, and Contracts to name a few.

Here is how to set it up:

1. Add a file upload field to your form. This goes without saying, if you want to send an attachment to Salesforce you need to have a file upload field on your form. For this example, I’ve added a File upload field on a form labeled Attachment :


2. Add an Attachment object in your Salesforce integration.

salesforce integration

3. Link the Attachment to the appropriate Salesforce object. To do this, set the Parent ID to Link. A select list will populate of all the objects the Attachment can be linked to.

4. Link the Attachment to the File Upload field on your form. To do this, set the File Name and Body to Field; then select the file upload field from the list of fields. At this point my integration settings look like this:

attachment field

5. Save Settings

That’s it! When your form is filled out and a file is uploaded. We will send the file to Salesforce. It will appear as an attachment to it’s linked object (set by Parent ID). Here is a Screenshot of the attachment in Salesforce after I submitted my test form:

final step

Need more help? Don't hesitate to check out our support center for more information!


Unlock the Power of Workflow Automation with Step Logic

Discover how Formstack's new Workflows feature revolutionizes automation with group approvals, dynamic data routing, and enhanced flexibility for all your busin
Read more
Formstack is a SaaS company with a mission to help organizations digitize what matters, automate workflows, and fix processes—all without code. A variety of team members come together to compile posts under Formstack's authorship.
More Articles