You are here:
Accessing Amazon S3 Content from Salesforce
Link, access, search for, and stream files stored in Amazon S3 directly from Salesforce.
Required Editions
| View supported product editions. |
User Permissions Needed |
|
To access files in Amazon S3: |
Files Connect Cloud |
Considerations for Accessing Files in Amazon S3
- You can only preview the following file types:
- Audio: MP3 and other formats supported by HTML5.
- Image: JPEG, JPG, JPE, PNG, SVG, and WEBP.
- Video: MP4, WebM, Ogg, and other formats supported by HTML5.
- To search for a file, you must enter the prefix of the object key. The object key is a combination of the file's path and name (for example, sfdc/case/001/file1.png). Searching for just the file name (file1.png) won't provide results unless the file is already loaded in the user interface.
- You can search for and attach files to a record from mobile devices.
- By default, when you attach a file from Amazon S3 to a Salesforce record, Salesforce
creates a reference, not a copy.
- Deleting a file from Amazon S3 does not delete the corresponding reference in Salesforce.
- Deleting a file reference from a Salesforce record does not delete the original file in Amazon S3. You can develop a mechanism to keep the file and reference in sync. For example, use Salesforce platform events.
Access Files in Amazon S3 and Link to a Record
You can access files from different locations in Salesforce, such as Files home, Notes & Attachments section in Related list of a record.
Example: Link a File to a Case Record and Stream it
- From the App Launcher, find and select Cases.
- Open a case and click Related.
- In the Files section, click Add Files.
- In the Connected Sources section in the left column, select the external data source that you defined for Amazon S3.
- Navigate through the folders to find the file to be linked.
- Select the file and click Add.
Note You can select up to 10 files at a time. - Click the file name to preview it.
Example: Link Files in Amazon S3 to a Chatter Feed
- From the App Launcher, find and select Salesforce Chatter.
- Click Chatter.
- While authoring a post, click the paperclip icon below the post to open the Select File window.
- In the Connected Sources section in the left column, select the external data source that you defined for Amazon S3.
- Navigate through the folders to find the file to be linked.
- Select the file and click Add.
- In the body of your post, @mention groups or people that you want to share with.
Example: Access Amazon S3 Files from Files Home
To access files from Amazon S3 from Files home.
- From the App Launcher, find and select Files.
- From the external files list in the Connected Sources section in the left column, select the external data source that you defined for Amazon S3.
- Navigate through the folders to find a file.
- Click next to the file name, and choose one of the following:
- Open the file to preview or stream it.
- Download the file to your local system.
- Share the file with other users.
Did this article solve your issue?
Let us know so we can improve!

