Newer Version Available

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

Post a Comment

This example calls postCommentToFeedElement(communityId, feedElementId, text) to post a plain text comment to a feed element.
1swfobject.registerObject("clippy.codeblock-0", "9");
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17ConnectApi.Comment comment = ConnectApi.ChatterFeeds.postCommentToFeedElement(null, '0D5D0000000KuGh', 'I agree with the proposal.' );