Newer Version Available

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

Post a Rich-Text Comment with Inline Image

You can post rich-text comments with inline images and mentions two ways. Use the ConnectApiHelper repository on GitHub to write a single line of code, or use this example, which calls postCommentToFeedElement(communityId, feedElementId, comment, feedElementFileUpload). In this example, the image file is existing content that has already been uploaded to Salesforce.