Share emails or events with certain groups of users.
Signature
public static ConnectApi.ActivitySharingResult
shareActivity(String activityId, ConnectApi.ActivitySharingInput sharingInfo)
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.