How to find how many users are following a topic in Salesforce?

From EntitySubscription sObject, we can find the number of followers for a specific record.

In case of topic, we have to enter the id of the topic record in the Parent Id to filter.

Sample SOQL:

SELECT Id, ParentId, SubscriberId, Subscriber.Email, Subscriber.name, Parent.Name FROM EntitySubscription WHERE ParentId = 'Id of the Topic'



No comments:

Post a Comment