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
rushirushi 

lead converion validation and triggers order execution

Hello All,

I am working on a lead conversion and receiving the opportunity validation error because of the partner check box is unchecked.
But in the lead after update trigger we are assigning this value to be checked to pass the opportunity VR. So I am wondering does anybody knows the lead conversion order of triggers and validation rules execution including the lead,account,contact and opportunity objects.
If the validation rules will firebefore executing the all after triggers then why it's not working in other validations?

Thanks for all the help.
Vivian Charlie 1208Vivian Charlie 1208

Hi Rushie,

 

You can find the order of execution details at this Salesforce help page

https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_order_of_execution.htm

 

Please review and let me know in case you have any doubts so that we can then decide how this affects your code.

 

Thanks

Vivian