Salesforce Decode
Salesforcedecode
Back to questions
IntegrationIntermediatesoapleadsrouting

Implement SOAP AssignmentRuleHeader for automated lead integration routing

Real World Scenario

Inbound lead SOAP API creates Lead without assignment rules; leads sit in default queue missing SLA.

Expected Answer

• AssignmentRuleHeader assignmentRuleId useDefaultRuleFlag on create • Query AssignmentRule metadata API for active rule Id • Lead assignment rules fire on SOAP create when header set • Alternative Apex lead assignment after insert if rules complex • REST create lacks AssignmentRuleHeader use Apex REST wrapper • Test assignment in sandbox with rule criteria edge cases • Monitor unassigned lead queue depth integration health

Follow-Up Questions & Answers

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

Direct answer: AssignmentRuleHeader assignmentRuleId useDefaultRuleFlag on create Also consider: Query AssignmentRule metadata API for active rule Id In practice: Lead assignment rules fire on SOAP create when header set Balance speed of delivery with maintainability.

Architect Perspective

SOAP lead integration must explicitly trigger assignment—default create skips rules without header.