I want to add Chatter feeds from Trigger and obviously I am going to implement this as Bulkified.
I have data in the following format.
Public Class ChatterFeedInfo
{
public Id usermentionId {get;set;} // user records to which chatter feed will be @mentioned [@John Doe]
public Id recordId {get;set;} // parent record id
public String body {get;set;} // feed body
public Id chatterGroupId {get;set;} // if not null post this feed to Chatter Group
}
I get List<ChatterFeedInfo> chatterFeeds
in my trigger but not sure how to implement this with 'Chatter in Apex'.
Please suggest.