Posts

Salesforce Integration Basic Details

I’ll explain with 3 scenarios : Salesforce → External System (one-way) External System → Salesforce (one-way) Two-way (bi-directional) And in between, I’ll clarify Named Credentials, Connected Apps, OAuth, Client Id/Secret, API key, etc. ๐Ÿ”น Step 1: Core Building Blocks in Salesforce Integrations 1. Named Credential What it is: A secure way in Salesforce to store external endpoint URL + authentication method (OAuth, Basic, API key). So your Apex code doesn’t hardcode credentials. Why we use it: ✅ Centralized credential management ✅ No need to store username/password in code ✅ Auto handles token refresh (if OAuth) When to use: Whenever Salesforce needs to call an external system . 2. Connected App What it is: A configuration in Salesforce that allows an external system to connect into Salesforce using OAuth. Why we use it: ✅ If an external system needs to call Salesforce APIs (REST, SOAP, Bulk) ✅ Provides Client Id + Client Secret When to use: When...

Oracle to Salesforce Integration: Handling Inbound REST API

Image
  Introduction This blog extends our previous guide on Salesforce-to-Oracle outbound integration by focusing on an inbound REST API integration where Oracle sends customer data (including Orders and Addresses) to Salesforce to create or update records. We’ll provide a detailed Apex REST service with comprehensive comments to explain the @RestResource and @HttpPost annotations and their purpose. Additionally, we’ll clarify when and how to use a Named Credential in inbound integrations, particularly for scenarios requiring outbound callbacks to Oracle. This guide is beginner-friendly, assuming basic Salesforce admin/developer knowledge and familiarity with the objects from the outbound integration. Use Case When a customer record is updated in Oracle (e.g., status changes or new orders are added), Oracle sends a REST API request to Salesforce to: Update or create a Customer__c record and its related Order__c and Address__c records. Log the request and response in Integration_Lo...

๐ŸŒ Real-Time Salesforce to Oracle REST API Integration – Beginner Guide with JSON and Logging

Image
      Salesforce to Oracle REST API Integration ๐Ÿ“˜ Overview In this blog, we’ll cover a real-time outbound REST API integration from Salesforce to Oracle. When a user clicks a button on a Customer__c record, Salesforce will: Send the customer data + related records (Orders & Addresses) to Oracle Show success or failure messages Log the integration request and response for tracking ๐Ÿ” Use Case “Send Customer data to Oracle when status = Completed and user clicks Send Data.” If the call is successful: ✅ show a success message If the call fails: ❌ show a failure message In all cases: ๐Ÿงพ store the request and response in a log   Visualizing Salesforce-Oracle Integration ๐Ÿ“ฆ Type of Integration:  REST API (Outbound) Salesforce is the client , and Oracle is the server . ๐Ÿงฑ Step-by-Step Implementation:  Step 1: Get API Details from Oracle Team Before building anything, ask the Oracle team to share: Step 2: Create Custom Objects in Salesfo...