function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
jnguyen32jnguyen32 

Assignment Rules and Lead Insertion via API

If we are inserting leads into Salesforce via the API, do Assignment Rules still trigger?
SuperfellSuperfell
not by default you can use the AssignmentRuleHeader to have the rules fired.
shillyershillyer

Yes, they will be executed if the record is created manually, captured from the web, or imported via the lead import wizards. Here's an example of ensuring execution with Data Loader (which uses the API).

 

Hope that helps,

Sati