function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Michael MMichael M 

Send pdf files to SF through api (connected app), and attach to Leads

Hello, i need to set up a process where I can both SEND and RECEIVE FILES (ContentVersion/ContentDocument) between Salesforce and an Aws S3 bucket. I am trying to find an example of code to do such a thing. To send files I will be using apex, but to receive files, other (non salesforce) developers will need to be able to access our salesforce api and send files from the s3 bucket to salesforce. Is there any examples of code for how to do each 1 of the above steps?
Best Answer chosen by Michael M
VinayVinay (Salesforce Developers) 
Hi Michael,

Found below references that can give more details.

https://www.sfdcpanther.com/integrate-salesforce-with-amazon-s3/
https://absyz.com/upload-files-in-amazon-s3-from-salesforce/#:~:text=This%20will%20be%20used%20to,%2F'%20slash%20can%20be%20created.
https://developer.salesforce.com/forums/?id=906F0000000BHYeIAO

Thanks,

All Answers

VinayVinay (Salesforce Developers) 
Hi Michael,

Found below references that can give more details.

https://www.sfdcpanther.com/integrate-salesforce-with-amazon-s3/
https://absyz.com/upload-files-in-amazon-s3-from-salesforce/#:~:text=This%20will%20be%20used%20to,%2F'%20slash%20can%20be%20created.
https://developer.salesforce.com/forums/?id=906F0000000BHYeIAO

Thanks,
This was selected as the best answer
Michael MMichael M
Awesome thanks