November 24, 2019

How to query record followed and the user id using SOQL?

SOQL:

SELECT Id, ParentId, SubscriberId FROM EntitySubscription

SubscriberId - ID of the User who is following the record or user.
ParentId - ID of the record or user which the user is following.

For additional fields, check the below link

https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_entitysubscription.htm

No comments:

Post a Comment