3 Antworten
I am sure you must be aware of Heap Size limit of 6 MB for Synchronous and 12 MB for Asynchronous ..So can you modify your code to only ask 1 attachment at a time.The attachment could be either 60 KB or 3 MB.In this way you will never hit Heap Memory limit...If for some reason , you cannot modify your code to limit the transaction to 1 attachment, ask the sender ( developer of the other system with which SFDC is integrating) to send only 1 attachment per request from SFDC.This is the only solution I can think of at this time.