Newer Version Available

This content describes an older version of this product. View Latest

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.
1swfobject.registerObject("clippy.codeblock-0", "9");
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17ConnectApi.ChatterFeeds.shareFeedElement(null, '0F9RR0000004CPw', ConnectApi.FeedElementType.FeedItem, '0D5RR0000004Gxc');