Newer Version Available

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

Post a Comment with an Existing File

To post a comment and attach an existing file (already uploaded to Salesforce) to the comment, create a ConnectApi.CommentInput object to pass to postCommentToFeedElement(communityId, feedElementId, comment, feedElementFileUpload).