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
Max_gMax_g 

Urgent Request: Account Ownership Change not updating Opportunity owners

Just realized that opportunity owners are not being updated when the account owner changes.  Our system of record is an external system, so all ownership changes are done through the ASI.  I found an old post indicating this has been happening since 2009.  Does anyone have an automated example of how to do this?  I can add all these changes to a trigger, but I thought salesforce automatically handled this for active opportunities.

 

Best Answer chosen by Admin (Salesforce Developers) 
imutsavimutsav
You are right. You need to create a Trigger on Account update to change the owner of all the active Opportunities. This doesn't happens automatically becuase there can be multiple Sales Reps working on the same Account add through Account Team.

Thanks
Utsav

[do mark it as a solution or give kudos if you think i helped you any bit. ;) ]

....