Share a Feed Element

This example calls shareFeedElement(communityId, subjectId, feedElementType, originalFeedElementId) to share a feed item (which is a type of feed element) with a group.
ConnectApi.ChatterFeeds.shareFeedElement(null, '0F9RR0000004CPw', ConnectApi.FeedElementType.FeedItem, '0D5RR0000004Gxc');
Previous
Next