Posts

Showing posts with the label Security Token

Salesforce REST API: How to Expose Apex Classes as REST API Endpoint - POST

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community This article is in continuation of my previous article  How to Expose Apex Classes as REST Web Services - GET Operations  where I have explained how to implement a GET Operation.   In this article, we will look into the detailed implementation of exposing Apex class as REST Web Service offering a POST operation to delete records from Salesforce Object(s).    To start with the demo, I have set up some of the data in Accounts Object (Standard Object) which has Invoices Record as its Child   Step-1 & 2:  I have added an Account  “acr001”  in Accounts Object Step-3 & 4:  I have added a few  “Invoice Records”  which are associated with Customer  “acr001”   Step-5 & 6:  If we click an...

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...