Timeline for Uploading files to SFDC attachment object using REST call
Current License: CC BY-SA 4.0
11 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 29, 2018 at 9:12 | comment | added | Tushar Sharma | @San Heroku to be used as a Platform to execute Java | |
Jun 29, 2018 at 9:09 | comment | added | San | here you refer Heroku to be used as a Platform to execute Java or Heroku specifically give functionality to upload/download even larger files? We have our external service deployed on AWS. | |
Jun 29, 2018 at 8:39 | comment | added | Tushar Sharma | @San yes you can do that but you will not be able to handle large files due to governor limits. Although you can try Java and Heroku. | |
Jun 29, 2018 at 7:25 | comment | added | San | Thanks, I have tried above approach and it worked. Only the problem I am facing is with size of file, some of my files are having more than 10MB of size and even after compressing in ZIP we are unable to losing much in size. Alternately I want to try another approach. Can this be done from Apex code itself. What I mean is from Apex I will make call to S3 and download bunch of files and save in Attachment object. | |
Jun 27, 2018 at 7:26 | comment | added | Tushar Sharma |
@San you need to create zip file of attachments. Check the link. This line The following sample CSV file includes two Attachment records. The first record references an attachment1.gif binary file in the base directory of the zip file. The second record references an attachment2.doc binary file in the subdir subdirectory of the zip file.
|
|
Jun 27, 2018 at 6:58 | comment | added | San | Ohh, I did not understand. if I give path rather than content will SF take care of downloading from the source location and upload to SF Attachment. (we have our files stored at Amazon S3) | |
Jun 27, 2018 at 6:52 | comment | added | Tushar Sharma | @San you need to give path here of your file. | |
Jun 27, 2018 at 6:45 | comment | added | San | As per the link, in request.txt file each row will represent one record, in my case it will be attachment file details including the content of file being uploaded under body column. Do we have size limit on request.txt because I could see SF doc says Batches size should not be more than 10MB? In my case individual file can go up to 25MB. | |
Jun 27, 2018 at 4:53 | comment | added | Tushar Sharma | @San You can use Get Batch Results to check the status. | |
Jun 26, 2018 at 14:10 | comment | added | San | Thanks Tushar. As far I understood, this will create a batch job in Saleaforce and will execute as soon as it get CPU. I can use batch Job id returned in the response for checking the completion status but once the job is completed how to check what are the attachments which got failed and what was the cause of failure. | |
Jun 26, 2018 at 11:56 | history | answered | Tushar Sharma | CC BY-SA 4.0 |