---
schema_version: "1"
id: 4735f414f244ac83861b894ac61e9ee0537c8a431dc86082445827bd94c64ca2
title: ChatterActivity
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_chatteractivity.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_chatteractivity.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0a8fc9e25f544a15443b7e2891c01b7b9a1d52fe193ab12f8ab49e7bec0991ed
description: 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.
---
# 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(), getDeleted(), getUpdated(), 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

ID of the Experience Cloud site to which the ChatterActivity belongs. This field is available only if digital experiences is enabled in your org. This field is available in API version 26.0 and later.



 |
| ParentId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

ID of the object type to which the ChatterActivity is related. In API version 68.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](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)
    
    #### Note
    
    To query ChatterActivity, you must provide the ParentId. In API version 68.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.

#### See Also

- [FeedItem](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_feeditem.htm "FeedItem represents an entry in the feed, such as changes in a record feed, including text posts, link posts, and content posts. This object is available in API version 21.0 and later. This object replaces FeedPost.")
- [FeedComment](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_feedcomment.htm "Represents a comment added to a feed by a user. This object is available in API version 18.0 and later.")
- [FeedLike](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_feedlike.htm "Indicates that a user has liked a feed item. This object is available in API version 21.0 and later.")