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:
- Queried the case team members
- Created an EntitySubscription for parentid=case.id and subscriberid=caseTeamMember.id
- Tests for existing EntitySubscription to prevent 'DUPLICATE_VALUE' error
- 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.