contents
Documentation Version
Summer '15 (API version 34.0)
Language
English
  • Summer '15 (API version 34.0) 34.0
  • Spring '15 (API version 33.0) 33.0
  • Winter '15 (API version 32.0) 32.0
  • Summer '14 (API version 31.0) 31.0
  • Spring '14 (API version 30.0) 30.0
  • Winter '14 (API version 29.0) 29.0
  • English
  • Japanese

ChatterActivity

ChatterActivity represents the number of posts and comments made by a user and the number of comments and likes on posts and comments received by the same user. This object is available in API version 23.0 and later.

Supported Calls

describeSObjects(), query(), retrieve()

Fields

Field Name Details
CommentCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments made by the ParentId.
CommentReceivedCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedComments received by the ParentId.
InfluenceRawRank
Type
int
Properties
Filter, Group, Sort
Description
Number indicating the ParentId’s Chatter influence rank, which is calculated based on the ParentId’s ChatterActivity statistics, relative to the other users in the organization. This field is available in API version 26.0 and later.
LikeReceivedCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedLikes received by the ParentId.
NetworkId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Identifier of the community to which the ChatterActivity belongs. This field is available only if Salesforce Communities is enabled in your organization. This field is available in API version 26.0 and later.
ParentId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
Identifier of the object type to which the ChatterActivity is related. In API version 34.0, the ParentId must be a UserId or SelfServiceUser ID.
PostCount
Type
int
Properties
Filter, Group, Sort
Description
The number of FeedItems made by the ParentId.

Usage

  • Use this object to reference the Chatter activity statistics, which include the number of posts and comments made by a user and the number of comments and likes on posts and comments received by the same user.
  • You can directly query for ChatterActivity.
    SELECT Id, PostCount, LikeReceivedCount 
    FROM ChatterActivity 
    WHERE ParentId = UserId
    Note

    Note

    To query ChatterActivity, you must provide the ParentId. In API version 34.0, the ParentId must be a UserId or SelfServiceUser ID.

  • A ChatterActivity record is created for users the first time they post or comment. Users who have never posted or commented don’t have ChatterActivity records. If users make only one post and then delete it, they do have ChatterActivity records. In both cases, the user interface displays zeros for their Chatter activity.
  • Use the InfluenceRawRank field to reference a user’s Chatter influence rank. This field is available in API version 26.0 and later.