Comparison of Salesforce REST API Composite Resources [Video]

Do you know that if you choose the right Salesforce API, you can potentially save up to 499 API calls? That will be some performance and governor limit gains, if you just know what the right API will be to use.

In one of the projects that I was involved in, there was a requirement to create 3 levels of parent child records. Record 1 will be parent of record 2, which in turn will be parent of record 3. 

Ignorant about the full landscape of REST APIs that Salesforce provides, the team’s initial design was to make three API calls. Create record 1, get the record id, create record 2, get the record id and then create record 3.

And then they were introduced to Composite API that Salesforce provides, where we could achieve the same requirement with just one single call.

If you are not already aware, there are a few different flavors of composite resources that Salesforce offers.

We have APIs that execute a single request and operate on a single record (non-composite) and then there are five different composite resources, each with their own nuances, capabilities, pros and cons. They are:

  1. Composite API
  2. Composite Graph API
  3. Composite Batch API
  4. sObject Tree API
  5. sObject Collections API

But there wasn’t an easy way to identify what are the differences between these APIs (at least not before this blog post 😉). How do they stack against each other? What they can or cannot do? Which one should be used when? 

Hence this blog post with a video that hopefully will give you some clarity on the capabilities and differences of these APIs and will help you make the right decision.

As a part of our course Mastering Salesforce APIs, we created a section comparing these APIs and think that this will be helpful for the larger audience also. Hence this blog post.

Take a look at the video, which hopefully will give you clarity on the capabilities and differences between these APIs. And if you would like to learn how to work with each of these APIs step-by-step, please do consider joining our course. It comes with free preview and 100% Money Back Guarantee.

Introducing Mastering Salesforce APIs Training Course

Liked this post? We are now offering a complete self-paced, video-based training course on Mastering Salesforce APIs. The course comes with downloadable step-by-step PDF guides, unlimited access, free upgrades, community discussion area, free preview and more. For more details, please click here.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top
Introducing All Access Pass