EntitySubscription

Represents a subscription for a user following a record. A user can subscribe to a record so that changes to the record are displayed in the Chatter feed on the user's home page, which is a useful way to stay up-to-date with changes made to records in Salesforce. Feeds are available in API version 18.0 and later.

Supported Calls

create(), delete(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve()

Fields

Field Details
ParentId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the record which the user is following.
SubscriberId
Type
reference
Properties
Create, Filter, Group, Sort
Description
Required. ID of the User who is following the record.

Usage

Things to consider when following a record:

Note the following when using query() with subscriptions:

Sample—SOQL

The following SOQL query returns subscriptions for all the accounts that you are following that have more than 10 employees:

SELECT Id 
FROM EntitySubscription 
WHERE Parentid IN (
  SELECT Id FROM Account
  WHERE NumberOfEmployees > 10
)
© Copyright 2000–2012 salesforce.com, inc. All rights reserved.
Various trademarks held by their respective owners.