/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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 = ''; }