/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
List<UserFeed> myfeed = [SELECT Id, FeedPostId FROM UserFeed WHERE feedpostid = :recipeSixFPostID LIMIT 1]; FeedComment fcomment = new FeedComment(); fcomment.FeedItemId = myfeed.get(0).id; fcomment.CommentBody = recipeSixComment; insert fcomment; recipeSixComment = ''; ApexPages.addMessage( new ApexPages.Message(ApexPages.Severity.INFO, 'Comment Added'));