SC-Q17Design IntermediateService Cloud#integration

Show order status and return eligibility from an ERP in the console. Design the integration.

Your confidence:Not rated

Model answer

Options:

OptionFit
Request and Reply (LWC โ†’ Apex โ†’ Named Credential โ†’ middleware Experience API)Current, orchestrated data (order + shipment + return eligibility). Best fit
Data Virtualization (Salesforce Connect external objects)Simple row reads with little orchestration; limited logic
Replication (batch or CDC into custom objects)Needed for reporting or sharing in Salesforce; adds storage and staleness

Chosen: Request and Reply through an Experience API that composes OMS, shipping and returns rules, with a short-TTL cache and rate limiting.

Salesforce side:

  • Named Credential with an External Credential (OAuth client credentials).
  • Apex with a sensible timeout.
  • Platform Cache per session.

Resilience: timeouts show the last cached status with its timestamp. A circuit breaker in middleware. The console never blocks case work.

Security: the API enforces that orders belong to the case's customer, and only the needed fields are returned.

Reuse: the same API serves the AI agent and the mobile app.

โœ” Key points to hit

โœ– Red-flag answers

  • Direct callouts to the ERP from every component
  • No timeout or fallback
  • Replicating all orders by default

โ†ช Follow-ups

When would you replicate instead?

When Salesforce needs to report on orders natively, apply sharing (portal users seeing their orders via sharing sets), run automation on order changes, or work offline. Then replicate a minimal read model through events or batch, and keep the ERP as the system of record.

What timeout would you set?

Short enough to keep the console responsive: a few seconds for a UI-blocking call, with an async refresh. The Apex maximum is much higher (120 s), but a user shouldn't wait that long. Combine it with caching and a 'refresh' affordance.