Posts

Showing posts from April, 2020

Salesforce SOAP API: How to Develop Custom Salesforce SOAP API Endpoint – II

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community This article is in continuation of my earlier one How to Develop Custom Salesforce SOAP API Endpoint – I In this article, we will look for the Service Operations which return records by Indexers (Unique Ids) as part of Response. Operation 2: Returns a Single Record By Indexer As we can see the “getInvoicesByAmount” is bound to return a collection of all the matching records meeting the filter criteria, now we add another method to the Service Class which always returns a single record based on the filter criteria. Such operations are always helpful to handle scenarios like “Get Something By ID, Get Something By Key” , to pinpoint the specific set of information. For example in the upcoming demo, we will develop an operation that will be able to return the Invoice Information based on Invoic

Salesforce SOAP API: How to Develop Custom Salesforce SOAP API Endpoint - I

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community Custom SOAP API Endpoints could be a very powerful capability to enhance Salesforce Integration offering to the external applications. In custom APIs, we can make full use of all available programming capabilities of Apex, SOQL and other programming artifacts. In this article, we will discuss detailed steps on how to develop Custom SOAP APIs for Salesforce and how can we consume the SOAP API Endpoint using Postman API Client. We will also look for Service Operations return collection of records as part of Response. Analyzing Salesforce Data Source Step-1: We have a Custom Object “Invoices__c” that is holding the data for Customer Invoices. In this demo, we will develop a Custom SOAP API Endpoint to retrieve data from this custom object. Code Development: Custom SOAP API Endpoint Operation 1: R

Salesforce SOAP API: POST Request with SOQL Query Envelope [Custom SObjects]

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  on executing SOQL Queries using SOAP API Requests. In this article, we will discuss the detailed steps on executing SOQL queries for Custom Salesforce SObjects using SOAP API. In this demo, we will look into how to query fields with lookup relationships. This article holds good both for Custom and Standard SObjects. Analyze Metadata & Data To start with a demo lets’ add a custom object to the Org: Step-1: Launch the Object Manager and add a custom object called “Invoice__c” Step-2: We have added a couple of fields to this object, especially focusing on a lookup field called “Customer__c” which is a lookup field for the “Account” object. Step-3: Add a new record to the “Invoice” object, choose a value from the “Account

Salesforce SOAP API: POST Request with SOQL Query Envelope [Standard SObjects]

Image
Looking for Salesforce Training & HandsOn Projects? Trailblazer Profile  |  LinkedIn  |  Salesforce Blog  |  Facebook  |  Youtube Channel  |  WhatsApp Community Executing SOQL Queries using SOAP API Requests possibly is one the most powerful implementation of Salesforce APIs and we can leverage it to customize database operations (CRUD) at the convenience of writing SOQL Queries. In this article, we will discuss the detailed steps on executing SOQL queries for Standard Salesforce SObjects using SOAP API Query Envelopes. To start with a demo, lets’ launch Postman API Client and follow the below steps- The Request Object Step-1: Select “POST” as the request type, since we are going provide the data to be submitted as part of the request so this is going to be a POST request to the Salesforce API Endpoint Step-2: Specify the SOAP Service End Point as mentioned in my earlier articles also “https://<Domain Name>/services/Soap/c/<Version No.>” S