@cloudcoder Add Chatter FeedPost


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. public void recipeFiveAddPost()
  2. {
  3. FeedPost fpost = new FeedPost();
  4. fpost.ParentId = UserInfo.getUserId();
  5. fpost.Body = recipeFiveAddAFeedPost;
  6. insert fpost;
  7.  
  8. ApexPages.addMessage(new ApexPages.Message(
  9. ApexPages.Severity.INFO, 'FeedPost ID is:'+fpost.id));
  10.  
  11. recipeFiveAddAFeedPost = '';
  12.  
  13. }
  14.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.