Created
May 24, 2011 21:37
-
-
Save fractastical/989761 to your computer and use it in GitHub Desktop.
@CloudCoder Add Chatter Comment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment