SAP + Salesforce End-to-End Integration β Interview Questions & Scenarios (2026)
Bidirectional sync, infinite loop prevention, SAP downtime resiliency, and dead-letter queues.
π SAP + Salesforce End-to-End Integration
Bidirectional sync, infinite loop prevention, SAP downtime resiliency, and dead-letter queues.
Describe a full Salesforce + SAP integration end to end.
Scenario: Salesforce Opportunity Closed-Won β SAP Sales Order created β SAP Order ID written
back to Salesforce.
π STEP-BY-STEP FLOW
β ERROR HANDLING
SAP failure β On Error Continue β update Opportunity with SAP_Error_Status__c = 'FAILED'
Salesforce write-back failure β log SAP Order ID to S3 reconciliation table for retry job
Max retries exceeded β Anypoint Alert to ops team + DLQ message
How do you prevent infinite loops in bidirectional SalesforceβSAP sync?
Challenge: updating SAP triggers a Salesforce CDC event which triggers SAP update again β infinite
loop.
Solution 1 β Source System Flag: Add SAP_Last_Updated__c timestamp field to Salesforce. When
MuleSoft updates SF from SAP, set this field = NOW. In CDC subscriber, check: if
SAP_Last_Updated__c was updated within last 5 seconds β skip (it was a SAP-originated update).
Solution 2 β Dedicated Integration User: Use a dedicated Salesforce user
(mulesoft_integration@enterprise.com) for all SAP-originated updates. In CDC subscriber, skip events where
commitUser == 'mulesoft_integration@enterprise.com' . This breaks the loop at the event source.
How do you handle SAP being down when a Platform Event arrives?
Synchronous flows: Until Successful with 3 retries + 30s delay. After exhaustion β On Error Continue
β update Salesforce with SAP_Error_Status__c = 'FAILED' β Anypoint Alert to ops team.
Asynchronous flows (preferred): Publish the Platform Event payload to Anypoint MQ β messages
persist cleanly (default 4β7 day retention, configurable up to 14 days) and drain reliably when SAP recovers. MQ consumer checks ObjectStore
idempotency key before each attempt to prevent duplicate SAP orders on retry.
Project: Insurance β Real-Time Order Status Notification.
Problem: Traditional scheduled polling every 2 minutes was too slow for customer notifications and wasted 70,000 API calls daily.
What I Did: Subscribed to Salesforce `Order_Status_Event__e` Platform Events via MuleSoft Replay Channel Listener, routing events through Anypoint MQ for async processing.
Result: Achieved end-to-end event notification latency of under 400ms while eliminating 100% of polling API calls.