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.
Comparison of Salesforce REST API Composite Resources [Video]Read More »