Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Packaging ConnectApi Classes
If you include ConnectApi classes in a
package, be aware of Chatter dependencies.
If a ConnectApi class has a dependency on
Chatter, the code can be compiled and installed in orgs that don’t have Chatter enabled.
However, if Chatter isn’t enabled, the code throws an error at run
time.
1System.NoAccessException: Insufficient Privileges: This feature is not currently enabled for this user.In its reference documentation, every ConnectApi method indicates whether or not it supports Chatter.