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
stevenjinstevenjin 

Salesforce REST Endpoint Batch upsert

Hello all,  I have a need to create a REST endpoint that can be called with a JSON list of records that I would like to insert.  The list has the possibility of going up to the thousands.  

Is there a limit Salesforce will likely hit if I deserialize the list of records from JSON?  Would I be more likely to hit the apex heap size first?  

Thanks
HDevHDev
You have to use REST Bulk API for that. Thousands is not a problem. 

https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_intro.htm
stevenjinstevenjin
To clarify,  I know there is the REST Bulk API.  

This needs to be used in an enterprise setting.  There is a certain amount of mapping and translation that I would like to do inbetween the endpoint and the DML.  Plus I would rather not expose the field API names and perfer to use a more standardized JSON API.
stevenjinstevenjin
To clarify.  I know the Bulk API exists.  

The reason I'm setting up a custom endpoint is that I want to sheild the connected application from our field API names as well as to provide a layer of translation.  

Anyone have experience with this?