Return to Snippet

Revision: 30008
at August 6, 2010 02:55 by d3developer


Initial Code
		 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'));

Initial URL

                                

Initial Description

                                

Initial Title
@cloudcoder Add Chatter Comment

Initial Tags

                                

Initial Language
Other