create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()
Field | Details |
---|---|
NetworkId |
|
ParentId |
|
SubscriberId |
|
Consider this when following records and users:
If you deactivate a user, any EntitySubscription where the user is associated with the ParentId or SubscriberId field, meaning all subscriptions both to and from the user, are soft deleted. If the user is reactivated, the subscriptions are restored. However, if you deactivate multiple users at once and these users follow each other, their subscriptions are hard deleted. In this case, the user-to-user EntitySubscription is deleted twice (double deleted). Such subscriptions can’t be restored upon user reactivation.
The following SOQL query returns subscriptions for all the accounts that a subscriber is following that have more than 10 employees: