Return to Snippet

Revision: 29263
at July 24, 2010 05:23 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