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
Naresh Kovuri 11Naresh Kovuri 11 

External System is unable to pull attachment more than 5 MB

Hi All,

We have a 3rd party system, which will pull an attachment from Salesforce when it is uploaded to a sObject (case).

There is no issue when the file size is around 5 MB. They were receiving heap size limit error when trying to pull attachment if it is more than 5 MB.

Any ideas of how to overcome this scenario?

Thanks in Advance,

Naresh

AbhishekAbhishek (Salesforce Developers) 
There is a limit from the salesforce side for sending large size attachment. You can overcome this limit by using 3rd party storage server for storing the file content as well as sending them over the email with large size attachment.

Cloud Drop is One such App that is somewhat following the same logic in order to store any number and size of files that can be associated with any salesforce object with the Rackspace server. It also allows the user to send a very large size file as an attachment to a particular contact/lead record.

Please check the following link for more information:

https://appexchange.salesforce.com/listingDetail?listingId=a0N30000003IzEDEA0


AND Another Suggestion:-

One option would be to create a Heroku app with a single endpoint that takes the attachment Id. The endpoint can then retrieve the attachment and then upload it to the 3rd party server.

For more information please check with the below links which might help you.

http://salesforce.stackexchange.com/questions/29141/string-length-exceeds-maximum-6000000

https://developer.salesforce.com/forums/?id=906F0000000kEAgIAM

I hope you find the above information is helpful. If it does, please mark as Best Answer to help others too.

Thanks.