Force.com Apex Code Developer's Guide
Summer '26 (API version 67.0)
Spring '26 (API version 66.0)
Winter '26 (API version 65.0)
Summer '25 (API version 64.0)
Spring '25 (API version 63.0)
Winter '25 (API version 62.0)
Summer '24 (API version 61.0)
Spring '24 (API version 60.0)
Winter '24 (API version 59.0)
Summer '23 (API version 58.0)
Spring '23 (API version 57.0)
Winter '23 (API version 56.0)
Summer '22 (API version 55.0)
Spring '22 (API version 54.0)
Winter '22 (API version 53.0)
Summer '21 (API version 52.0)
Spring '21 (API version 51.0)
Winter '21 (API version 50.0)
Summer '20 (API version 49.0)
Spring '20 (API version 48.0)
Winter '20 (API version 47.0)
Summer '19 (API version 46.0)
Spring '19 (API version 45.0)
Winter '19 (API version 44.0)
Summer '18 (API version 43.0)
Spring '18 (API version 42.0)
Winter '18 (API version 41.0)
Summer '17 (API version 40.0)
Spring '17 (API version 39.0)
Winter '17 (API version 38.0)
Summer '16 (API version 37.0)
Spring '16 (API version 36.0)
Winter '16 (API version 35.0)
Summer '15 (API version 34.0)
Spring '15 (API version 33.0)
Winter '15 (API version 32.0)
Spring '14 (API version 30.0)
No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
ConnectApi Namespace
The ConnectApi namespace
(also called Chatter in Apex) provides classes for accessing the same data available in Chatter REST API. Use Chatter in Apex to create custom Chatter experiences in Salesforce.
For information about working with the ConnectApi classes, see Working with Chatter in Apex.
- Chatter Class
Access information about followers and subscriptions for records. - ChatterFavorites Class
Chatter favorites give you easy access to topics, list views, and feed searches. - ChatterFeeds Class
Get, post, and delete feed items, likes, comments, and bookmarks. You can also search feed items, share feed items, and vote on polls. - ChatterGroups Class
Information about groups, such as the group’s members, photo, and the groups the specified user is a member of. Add members to a group, remove members, and change the group photo. - ChatterMessages Class
Access and modify message and conversation data. - ChatterUsers Class
Access information about users, such as followers, subscriptions, files, and groups. - Communities Class
Access general information about communities in your organization. - CommunityModeration Class
Access information about flags feed items and comments in a community. Add and remove one or more flags to and from comments and feed items. To view a feed containing all flagged feed items and comments, pass ConnectApi.FeedType.Moderation to the ConnectApi.ChatterFeeds.getFeedItemsFromFeed method. - Organization Class
Access information about an organization. - Mentions Class
Access information about mentions. A mention is an “@” character followed by a user or group name. When a user or group is mentioned, they receive a notification. - RecordDetails Class
Access information about records in your organization. - Records Class
Access information about record motifs, which are small icons used to distinguish record types in the salesforce.com UI. - Topics Class
Access information about topics, such as their descriptions, the number of people talking about them, related topics, and information about groups contributing to the topic. Update a topic’s name or description, and add and remove topics from records and feed items. - UserProfiles Class
Access user profile data. The user profile data populates the profile page (also called the Chatter profile page). This data includes user information (such as address, manager, and phone number), some user capabilities (permissions), and a set of subtab apps, which are custom tabs on the profile page. - Zones Class
Access information about Chatter Answers zones in your organization. Zones organize questions into logical groups, with each zone having its own focus and unique questions. - ConnectApi Input Classes
Some ConnectApi methods take arguments that are instances of ConnectApi input classes. - ConnectApi Output Classes
Most ConnectApi methods return instances of ConnectApi output classes. - ConnectApi Enums
Enums specific to ConnectApi. - ConnectApi Exceptions
The ConnectApi namespace contains exception classes.