ConnectApi (Chatter in Apex)

To create custom Chatter experiences in Salesforce, use Chatter in Apex.

Many Chatter REST API resource actions are exposed as static methods on Apex classes in the ConnectApi namespace. These methods use other ConnectApi classes to input and return information. The ConnectApi namespace is referred to as Chatter in Apex.

In Apex, it’s possible to access some Chatter data using SOQL queries and objects. However, ConnectApi classes expose Chatter data in a much simpler way. Data is localized and structured for display. For example, instead of making many calls to access and assemble a feed, you can do it with a single call.

Note

Note

To integrate mobile apps, intranet sites, and third-party Web applications with Chatter, use Chatter REST API.