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
Shiva VenuShiva Venu 

Run Lead Assignment Rule on Lead Status Change

We have lead with New and New Response status. Lead assignment rule only triggers when a new lead is created. We need to rerun the Lead assignment rule when the Lead status changes to New Response from any other lead status. 
How can we built this the solution for this?
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Shiva,

we have an option while editing a lead which says "Assign using active assignment rule" . If we check this checkbox then the assignment rules will be fired again. if this option is not available please follow the below steps.

Go to setup-> Lead-> Page Layout and open a layout and click on Layout properties and check the checkbox as shown below
User-added image
If you want to automate this we can use DmlOptions.AssignmentRuleHeader and run the assigment rule which satisfies particular condition.

Reference article for Triggering the assignment rule automatically (https://sponge.io/salesforce-lead-assignment-rules-process-builder-apex/)

If this solution helps, Please mark it as best answer.

Thanks.