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
MillikMillik 

list of users the current user is not following

I want a list of user that current user is not following in chatter , please help me I am new in this developer arena...

 

I got the list of cureent user's following

 

Select id, subscriberid  from entitysubscription where Subscriberid= "Userinfo.getuserid();

 

Regards,

Millik

Vinita_SFDCVinita_SFDC

Hello,

 

You can query like:

 

select id, parentid, subscriberid, parent.name from EntitySubscription where subscriberid !=:uid;

 

Where uid is the id of the user for which you are querying.