I know this question has been asked before, but there has been nothing recent since the recent Winter 20 Account Team enhancements - Customize Account Teams to Enhance Team Selling

I recently created a trigger that blocks deletion of any account team member, which works great in every instance except when someone changes an account owner but does not check the "Keep account team" checkbox. I don't understand why a trigger wouldn't apply in this instance, but it doesn't. Any ideas on how to prevent the account team from being removed on account owner change? Anything recent that would help with the Winter 20 release? Thanks in advance.


Triggers don't automatically cascade when you update a parent record, which is why your trigger doesn't work. As far as I'm aware, the only solution would be to add an account trigger to copy the account team back on to the account when the owner changes.

  • Hey, thanks for reply. Are you saying that the account team member triggers don't run if the update is on the parent record, e.g. the account?
    – jameskbw
    May 12 '20 at 14:28
  • @jameskbw Correct.
    – sfdcfox
    May 12 '20 at 14:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.