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
Adarsh G 6Adarsh G 6 

Keep account team using apex

HI,
I have quickaction which will change the owner of  account record. When the owner of record is changed, the account team will be cleared. In UI we have Keep account team checkbox inorder to preserve the account team.

But since Im changin the owner throgh apex, how can we enable Keep account team throght apex?

Thanks,
Adarsh
AnudeepAnudeep (Salesforce Developers) 
Hi Adarsh - Can you please post your apex code here. Is it not possible to update the Keep accont team checkbox through apex?