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
AbAb 

SOQL to find the list of things followed by user

Hello,

What is the SOQL query to check the list of thins a user is following.
The user can click Follow on Account, Opportunity etc
but is there any limit on thiings to follow
Best Answer chosen by Ab
@anilbathula@@anilbathula@
Hi Sandrine,

 Try this query:

Change the SubscriberId to the user you want to track.
SELECT ParentId, Parent.Name FROM EntitySubscription WHERE SubscriberId = '00590000001Fghj' AND ParentId IN (SELECT Id FROM Account)


Thanks
Anil.B