QuestionQ148

VerifiedSalesforce Integration Patterns

Northern Trail Outfitters must send an order and its line items directly to an existing finance-application web service when an order is fulfilled. It is critical that every order reach the finance application exactly once for accurate invoicing.

Which solution should an architect recommend?

Explanation

Queueable Apex lets a trigger enqueue asynchronous callout work while preserving a job ID and structured job context for monitoring, failure handling, and controlled retries. A durable integration status and idempotency key can ensure that retries do not produce duplicate finance transactions. Salesforce recommends Queueable Apex for production asynchronous work; it is more capable than @future methods, while a user-initiated synchronous callout cannot reliably guarantee delivery after fulfillment.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!