Skip to main content

Posts

Showing posts with the label Webservice

Latest Post

Custom Metadata Types vs Custom Settings vs Custom Labels

  Custom Metadata Types vs Custom Settings vs Custom Labels 💬 In plain words:  Three lookalikes: Custom Metadata = configuration that DEPLOYS with your code (best for app settings). Custom Settings = org/user-specific values, changeable at runtime (hierarchy type is great for bypass switches). Custom Labels = translatable text for the UI. 📌 Example:  API endpoint URLs per environment → Custom Metadata (deploys with code, sandbox vs prod values). A 'Bypass_Automation__c' checkbox an admin flips during data load → hierarchy Custom Setting. The word 'Submit' translated to Hindi → Custom Label. 🎬 Real-Life Example: The Fee Table Trapped Inside Code  Skyline charges a different delivery fee per city. Apex needs those rates on every booking. The Old/Bad Way:  if (city == 'Delhi') fee = 50. Else if (city == 'Mumbai') fee = 65. … Every rate change is a code change, a test run, and a deployment. Why this is bad:  Business data is trappe...

@HttpPost web service in Salesforce

Here's Apex code for an @HttpPost  web service in Salesforce. This code defines a simple web service that accepts JSON data through an HTTP POST request and returns a response.

Harnessing the Power of Salesforce SOAP Integration: Seamlessly Connecting Systems

Introduction: In today's interconnected business landscape, integrating different systems and applications is crucial for streamlined operations and efficient data management. Salesforce, being a powerful CRM platform, offers robust SOAP (Simple Object Access Protocol) integration capabilities that enable businesses to seamlessly connect and exchange data with external systems. In this blog post, we will explore the features, benefits, and potential of Salesforce SOAP integration in achieving seamless system interoperability and data synchronization. 1. Understanding Salesforce SOAP Integration: SOAP is a widely-used protocol for exchanging structured information over web services. Salesforce SOAP integration allows businesses to interact with Salesforce using SOAP-based web services. It enables data synchronization, automation, and seamless communication between Salesforce and other applications or systems, regardless of their technology stack. 2. Exposing Salesforce Functi...

Apex Code for Receiving JSON Payload and Inserting Data in Salesforce via SOAP Web Service

Introduction: Salesforce provides powerful integration capabilities, allowing you to receive JSON payloads through a SOAP web service and seamlessly insert the data into your Salesforce org. In this blog post, we will explore how to write Apex code to receive a JSON payload and use it to insert records into Salesforce using a SOAP web service. Step 1: Define the SOAP Web Service Endpoint and Request To receive the JSON payload, you need to define a SOAP web service endpoint and create a corresponding request in Salesforce. This can be achieved by creating a global Apex class with a web service method decorated with the @WebService annotation. The method should accept a JSON payload as a string parameter.

Popular Posts

Salesforce LWC Code for Multi-Select Lookup

Introduction: In Salesforce Lightning Web Components (LWC), implementing a multi-select lookup field can enhance the user experience and provide greater flexibility for selecting multiple related records. In this blog post, we will walk through the process of creating a multi-select lookup field using LWC. We will cover the required code snippets and provide step-by-step instructions to help you implement this functionality in your Salesforce org.