Apex Reference Guide
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.
SalesforceInbox Class
Namespace
SalesforceInbox Methods
-
shareActivity(activityId, sharingInfo)
Share emails or events with certain groups of users.
shareActivity(activityId, sharingInfo)
API Version
39.0
Requires Chatter
No
Signature
public static ConnectApi.ActivitySharingResult shareActivity(String activityId, ConnectApi.ActivitySharingInput sharingInfo)
Parameters
- activityId
- Type: String
- The ID of the activity.
- sharingInfo
- Type: ConnectApi.ActivitySharingInput
- A ConnectApi.ActivitySharingInput object.
Return Value
Usage
This method is a feature of both Sales Cloud Einstein and Inbox. It lets users connect their email and calendar to Salesforce. Then, their emails and events are automatically added to related Salesforce records. Users can specify who their individual emails and events are shared with.