Posts

Showing posts with the label api

Salesforce Fact #871 | Sobject Tree API in action

Image
With the Sobject Tree API, it is possible to create parent record with multiple child records using the same request. In this example, we are creating two account records, one with two related contacts and another one with two related opportunities in the same POST request. Reference:  https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobject_tree.htm Attached are the screenshots.

Salesforce Fact #809 | Permission missing errors

At times, you can encounter the below errors: 'API is disabled for this user' -> This is encountered when the user is missing the API enabled system permission. 'limit resource is not enabled' ->  This is encountered when the user is missing the View Setup and Configuration system permission. Reference:  https://salesforce.stackexchange.com/questions/28037/messagelimits-resource-is-not-enabled-errorcodeapi-disabled-for-org

Salesforce Fact #808 | Invoking composite api from Postman

Image
With the help of Composite API, we can insert multiple related Sobject records at once. Thanks to the referenceId attribute. In this example, we have inserted one account and its related contact in a single API call using composite api from Postman. Reference:  https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_composite_record_manipulation.htm?_ga=2.195590892.1551867688.1707766533-2111625757.1696698877 Attached are the screenshots.