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
Ameya Desai 1Ameya Desai 1 

Change of owner on Opportunity

I have requirement to change the owner of the opportunity to account owner and if the account owner is inactive change it to the respective user (Sys admin). How can i achieve this? I am trying to use process builder ( I think I will need 2) but it does not work? Can some one help me by throwing some light. I am not so good at trigers:(
Best Answer chosen by Ameya Desai 1
Doria Hamelryk VetranoDoria Hamelryk Vetrano
Hi Ameya,

you don't have to build 2 processes, but you have to define conditions
User-added image

As first condition : Opportunity.Account.Owner.IsActive = true
Then : Opportunity.Owner ID = Opportunity.Account.Owner ID

For the second case, you have to choose the ID of the system Admin

Hope this will help :) If so, do not forget to flag this answer as best reply ;-)

All Answers

Doria Hamelryk VetranoDoria Hamelryk Vetrano
Hi Ameya,

you don't have to build 2 processes, but you have to define conditions
User-added image

As first condition : Opportunity.Account.Owner.IsActive = true
Then : Opportunity.Owner ID = Opportunity.Account.Owner ID

For the second case, you have to choose the ID of the system Admin

Hope this will help :) If so, do not forget to flag this answer as best reply ;-)
This was selected as the best answer
Ameya Desai 1Ameya Desai 1
Thank you Doria!! :) This worked