You need to sign in to do that
Don't have an account?
rushi
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.
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.
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