Posts

Showing posts from July, 2020

Salesforce REST API: How to Execute Bulk Insert Operations using Composite Tree Resource

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community SObject Tree is another powerful Composite Resource implementation that can enable you to build efficient API Requests to Servers which results in an efficient solution and a happy Customer.   Using this approach we can create a single API request that holds a set of “POST” executions for up to “5” different Object Type that’s all in one go. Awesome.   No more multiple to and fro between Client and Server, just fire and forget.   This approach can hold “5” different Object Trees (One for each object type) that can hold up to “200” records to work upon across all Object trees. Each Object tree can hold nested records based on Parent-Child relationship and this nesting can go up to a maximum of “5” levels.    The entire request coun...

Salesforce REST API: How to Execute Batch of REST API Requests using Composite Batch Resource

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community Salesforce REST API Framework provides many powerful implementations that can help to boost an application’s performance significantly.    “Composite” resources are one such implementation offering that helps improving Salesforce Application’s performance by minimizing the round-trips between the Client and Server.   In this article, we will discuss the “composite/batch” resource, which can execute up to 25 subrequests in a single request. It will return the HTTP response body and Status Code for each of the subrequests in the batch within the single response body.    It is important to note that each subrequest count against the API Limits. So be proactive to plan the solution approach accordingly. Lets’ hit the road to see some actio...