You need to sign in to do that
Don't have an account?
Opportunity-Owner does not change when Account-Owner is changed
Hi guys,
I thought, that by default, when an Account Owner is changed, open Opportunities owned by said User are given to the new Account Owner as well.
I know that this is the default when Account Owner is changed via front end. I thought this was the default for Account Owner changes via Apex Trigger as well? Is it not?
We have a Trigger that changes the Account Owner. However, the open Opportunities that are owned by the old Account Owner, don't get transferred to the new Account Owner.
Any idea why? Or do we have to put that Opportunity-Owner change into the Apex explicitly?
Thanks and best regards
Toby
P.S.: I know that Opps don't get transfered when Account-Owner is changed via API. The API Version 35 (Winter16) offers new "OwnerChangeOption" for that though. Is there something equivalent in Apex Classes?
I thought, that by default, when an Account Owner is changed, open Opportunities owned by said User are given to the new Account Owner as well.
I know that this is the default when Account Owner is changed via front end. I thought this was the default for Account Owner changes via Apex Trigger as well? Is it not?
We have a Trigger that changes the Account Owner. However, the open Opportunities that are owned by the old Account Owner, don't get transferred to the new Account Owner.
Any idea why? Or do we have to put that Opportunity-Owner change into the Apex explicitly?
Thanks and best regards
Toby
P.S.: I know that Opps don't get transfered when Account-Owner is changed via API. The API Version 35 (Winter16) offers new "OwnerChangeOption" for that though. Is there something equivalent in Apex Classes?
Thanks
Shashikant
All Answers
Thanks
Shashikant
thanks for your reply (unfortunate for us because we didn't know and thus didn't implement, but good to know now).
Best regards
Toby
1. Create a Process on the Opportunity object
2. Use a condition to update the Opportunity when the Opportunity. OwnerID ISCHANGED AND Opportunity > Account.OwnerID ISCHANGED
3. Update the Opportunity.OwnerID using PRIORVALUE
Is it works,I want to update opp team member with Opp.Owner as a team lead,when Account owner is changed followed by opportunity owner.
I have tried ,but it doesnt create Opp team, any ideas?
Thank you In advance,
Harish.
do I understand correctly: Your Account Owner is changed, that changes the Opportunity Owner, and you want to add the previus Opportunity Owner or the new Opportunity Owner as Opportunity Team Member??
Best regards
Toby
Thanks for your Prompt Response.Yes it is,It doesn't trigger,when the Account owner is changed.
when Account owner is changed,defaultly related Opp owner changes,but the new Opportunity owner doesn't add to the Opportunity team as a team lead.
I tried Process builder and a trigger,but it works only on opportunity Object,not to fire from Account Object.Any Ideas?
Thanks,
Harish.
Could you please share , how did you achieve aboce scenario.
Thanks in advance!
Haneef