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
BinayakBinayak 

Workaround for 3mb limit of a file in REST calls

We have a scenerio where we have to send some data(in json) from XYZ system and save it in Contact object via Apex REST. Now the size of the file is >3 mb.So we have decided to split it into 2 files and send it.But the problem is that Contact have a lookup to contact itself(related_to_contact__c).Some of the related to contacts are in the other file while sending a file.So its creating exception.Any possible workaround?

ForceMantis (Amit Jain)ForceMantis (Amit Jain)

Only workaround I think of is that you first insert records that doesn't reference other records first.