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

Having case team members automatically follow the case on chatter...

Any thoughts or ideas on this one? I set up a workflow rule so that case comments are posted to the case's chatter feed, but that doesn't help too much if the case team members aren't following the case. Any thoughts on ways to have this done automatically?


My first thought was a trigger that, on insert/update:

  1. Queried the case team members
  2. Created an EntitySubscription for and
  3. Tests for existing EntitySubscription to prevent 'DUPLICATE_VALUE' error
  4. Tests to make sure it does not put the user over the 500 following limit

I have a trigger that I have not rolled out to production yet that has users automatically follow accounts if they are in any of 5 'account team member' fields (not a related list, just lookup fields), and I figure this would be similar, but I'd love to hear any ideas on a better/simpler way to accomplish this goal.




Hi JAckerman09,

I have a similiar request, did you ever roll out the trigger for auto following cases that users are team members of?

I did, but unfortunately I no longer work at that company (or as a SF dev/admin), so I don't have access to any of the code, but it did work, if that helps at all. Sorry I can't be more helpful...
Guillaume Beaulieu 1Guillaume Beaulieu 1
Same problem.. :(