Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 641 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 641 Bytes

Salesforce S3 Utilities

Purpose

This is a simple Apex class that interacts with AWS S3

Deployment

Deploy to Salesforce

Create a File

  1. Create a new organizational level AWS Configuration custom setting, and set your AWS access key and secret key.

  2. Create an S3 file by doing the following

S3 s3 = new S3('region');
s3.createFile('bucketName', 'path', 'fileName', 'fileContent');