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
Malik Butler 5Malik Butler 5 

Lead owner approval process

I have an approval process that I need created. I currently have a validation rule to restrict users from changing lead owners but I can't make that happen via approval process. Any thoughts on how I could get the approval process based off of the criteria
ShirishaShirisha (Salesforce Developers) 
Hi Malik,

This depends on the order of execution and the approval process comes under workflow updates which will not trigger any validation rules as mentioned in the below doc:

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

For your reference:https://salesforce.stackexchange.com/questions/16710/approval-process-order-of-execution

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri