Salesforce Decode
Salesforcedecode
Back to questions
ApexAdvancedintegrationbulkificationdata-load

Handle Data Cloud or S3 file import triggering Apex on bulk insert

Real World Scenario

Marketing Cloud data import creates 300k Contact rows via automation. Contact trigger cannot handle volume and blocks import job.

Expected Answer

• Identify automation path: Data Cloud, MC Connect, or Bulk API • Trigger bypass for integration automation user during bulk ingest • Staging Contact table: batch validates and promotes to Contact • Async enrichment Queueable after insert for non-critical fields • Monitor import job and AsyncApexJob concurrently during first production load • Throttle import batch size coordinating with middleware • Reconciliation counts: source file rows vs Salesforce Contact count

Follow-Up Questions & Answers

Click to expand — each follow-up includes a direct, interview-ready answer

Direct answer: Identify automation path: Data Cloud, MC Connect, or Bulk API Also consider: Trigger bypass for integration automation user during bulk ingest In practice: Staging Contact table: batch validates and promotes to Contact Optimize for scale and operational observability.

Architect Perspective

Marketing bulk ingest is not user save—dedicated path with bypass and staging required.