Newer Version Available
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 |
|
| CommentReceivedCount |
|
| InfluenceRawRank | |
| LikeReceivedCount |
|
| NetworkId |
|
| ParentId | |
| PostCount |
|
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.
1SELECT Id, PostCount, LikeReceivedCount 2FROM ChatterActivity 3WHERE ParentId = UserId - 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.