Created
May 24, 2011 21:37
-
-
Save fractastical/989762 to your computer and use it in GitHub Desktop.
@CloudCoder Add Chatter FeedPost
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
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