Salesforce Request–Response Integration Pattern
1️⃣ What It Is
The Request–Response Integration Pattern is when Salesforce initiates a call to an external system and waits for the response within the same transaction.
Think of it as: “Salesforce knocks on the external system’s door, asks for something, waits at the door, gets the answer, and then continues processing.”
This is a synchronous, blocking integration pattern.
Salesforce acts as the client, and the external service acts as the provider.
2️⃣ When to Use It (Typical Use Cases)
Use this pattern when Salesforce must immediately receive information before proceeding.
Common examples:
🔹 Salesforce must validate data in real time (e.g., tax, address, pricing)
🔹 Real‑time credit score lookup
🔹 Real‑time inventory availability from ERP
🔹 Getting exchange rates, fraud checks, or KYC services
🔹 Payment gateway authorization Use this when Salesforce needs the response right now to continue a process or transaction.
3️⃣ Available Options in Salesforce
🔹 1. Apex Callouts (HTTP / REST / SOAP)
🔹 2. Named Credentials
🔹 3. External Services (OpenAPI / API Spec‑Driven)
🔹 4. Salesforce Connect (External Objects)
🔹 5. Flow HTTP Callouts (for simple scenarios)
4️⃣ Benefits
✔ Real‑time response - Salesforce gets immediate answers to continue processing.
✔ Reduced duplication - No need to store external data locally.
✔ Leverages external system logic - Rules, validation, tax engines, pricing engines, etc.
Recommended by LinkedIn
✔ Better user experience - UI can display fresh data instantly.
✔ Simple to implement - REST/SOAP callouts are straightforward for developers.
5️⃣ Best Practices
🔐 Security
⚙ Performance
🧱 API Design
🪵 Reliability
📊 Monitoring
6️⃣ Key Considerations
⚠ Salesforce Limits
⚠ External System Availability
⚠ Error Handling
⚠ Data Volume
⚠ Transaction Control
7️⃣ Sequence Diagram