We are having a requirement where we get large attachments from external system REST API which includes large size attachments. I see salesforce can't handle this because of heapsize of 6MB sync and 12mb async. Is there any way to handle this scenario in apex. EDIT:
we get multiple large files in different formats [pdf env etc] with some other information of the order needed in salesforce from external system in form-data REST API. when the external system hits salesforce we need to save this files in a document management system [our company internal system] and save the Document unique id [Response from Doc management system] for that order in salesforce.