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
aparna atmakuriaparna atmakuri 

rest api of multiple records

Hi All,

I have query to post multiple records in a single request call of rest api.
Kindly guide me regarding this.

Thanks,
Aparna
AnudeepAnudeep (Salesforce Developers) 
Hi Aparna, 

This can be achieved using composite REST API 

https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_composite.htm

Please look at this example

https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_composite_sobject_tree_flat.htm

Kindly let me know if it helps and close your query by marking it as solved so that it can help others in the future. Thank You!

Anudeep
Danish HodaDanish Hoda
You can achieve this by using Standard REST API provided by Salesforce.
Please refer the link (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm).