Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save fractastical/989762 to your computer and use it in GitHub Desktop.
Save fractastical/989762 to your computer and use it in GitHub Desktop.
@CloudCoder Add Chatter FeedPost
public void recipeFiveAddPost()
{
FeedPost fpost = new FeedPost();
fpost.ParentId = UserInfo.getUserId();
fpost.Body = recipeFiveAddAFeedPost;
insert fpost;
ApexPages.addMessage(new ApexPages.Message(
ApexPages.Severity.INFO, 'FeedPost ID is:'+fpost.id));
recipeFiveAddAFeedPost = '';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment