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

Keep Opportunity Team when Owner Changes

Is it possible to keep an opportunity team in place when ownership of an account or opportunity takes place WITHOUT checking the box? Would any of you have a trigger or suggestion for this kind of function?
Hi , 

When we click on Change Owner link, it takes us to a different page - Ownership Edit . 

We have to override this page with a Visualforce page and give the default value as true and you can hide the Component from the page layout. 

See below for some sample code about the controller to do the same,