Posts

Showing posts from December, 2020

Salesforce REST API: How to Execute Bulk API Operations Using Composite Batch Resource

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community Composite resource offered by Salesforce allows used to execute a series of REST API Requests in single call. Each of the child request is called as Subrequest. After the execution we will get Response Bodies & corresponding HTTP status for each subrequest with in the same call. Using this design pattern has a huge advantage of reducing number of API Calls to Salesforce. Since the whole series of requests counts as single call towards the API Limits. Possibilities are limitless so plan your solutions using the best design pattern at hand for the given piece of problem. In this blog we will discuss the implementation of “Composite/Batch” design pattern to solve a business problem. To start with this demo I am having a scenario where I need to Post some “Invoices” and “Payments” for a Customer, also need to ret