Use Connect in Apex (aka Chatter in Apex) to build custom Chatter user interfaces in Salesforce and to create triggers that post to Chatter feeds. Connect in Apex is the Chatter REST API exposed in the Apex ConnectApi namespace.
3
votes
1answer
48 views
Retrieve UserId of @mention user from chatter post in Apex
Is there a way to retrieve the user id of @mention user from chatter post in Apex? We can write a before insert trigger on feeditem, but when we display the body (which has @mention user) it simply ...
3
votes
1answer
45 views
How can I specify a record (or parentId) for a postFeedItem to be posted to?
I am trying to create a chatter post using an APEX trigger, and I'm almost there. I've gotten to this point:
ConnectApi.ChatterFeeds.postFeedItem(null, ConnectApi.FeedType.News, 'me', feedItemInput, ...
2
votes
2answers
181 views
Creating a FeedItem Using Connect in APEX
My goal is to create a trigger/class that, when a Financial Account (custom object) has it's balance change by more than 20% in either direction, creates a chatter post informing users of the 'Big ...
6
votes
4answers
579 views
How can I add an @mention when creating a FeedItem via APEX?
I have found that this can be done via the Chatter API, and that there is a pilot program (http://developer.force.com/cookbook/recipe/connect-in-apex-pilot) to bring this to APEX, but I am not ...