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
p999_dfsp999_dfs 

How to control

 

 

cloudcodercloudcoder

Yes this can be done pretty easily (and there are a number of examples in Chatter Labs). 

 

The primary object you will need to work with is EntitySubscription. This contains the parentid (record or person) and the subscriberid (the person who is following a record/person). 

 

To know if someone is following a record/user or not, simply query EntitySubscription where parentid  = xxx AND subscriberid = theuserid

 

p999_dfsp999_dfs

 

 

Thansk for your help

 

cloudcodercloudcoder

correct. You can also check out the Chatter Code Recipes article for a full example