Questions tagged [connect-api]

ConnectApi is the Apex namespace that includes Chatter in Apex functionality.

Filter by
Sorted by
Tagged with
3
votes
1answer
1k 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
4k 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 ...
15
votes
4answers
7k 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 ...