Tagged Questions

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.

learn more… | top users | synonyms

2
votes
1answer
35 views

Unable to create ConnectApi test data

I'm stuck trying to write a test method for the ConnectApi. Specifically, I have a remote action that uses the ConnectApi.QuestionAndAnswers.getSuggestions() method, which returns related (Chatter) ...
1
vote
0answers
141 views

Can't get Mule Studio Salesforce connector to connect, verified SF login and Security Token

I created a new demo project, from their canned demos, which only has 3 components. I filled in my force.com developer login. But any time I touch the SF icon in the diagram, or try to change any ...
2
votes
2answers
173 views

How can i get Thumbnail Image depending on files of chatter?

First of all i have a question how will i pull my files that i find in chatter Tab for community user through Chatter Connect In APEX or REST API? And Also I need to display Icon based on image .Lets ...
3
votes
1answer
145 views

Chatter in Apex: is it DML?

So there's times you can't DML (getters, constructors, components without allow DML, etc). Can we use chatter in apex, or is that also considered inserting records?
4
votes
2answers
494 views

How do I make a Visualforce PDF respect new line characters?

I have a Visualforce page where I need to show the chatter posts in a PDF. The chatter post is generated by apex code and contains new line characters. I am querying the posts and displaying them ...
2
votes
0answers
126 views

Only user and group IDs may be used in inline mentions

I'm creating Chatter feed items using connect API apex. I want a simple message that contains a link to the user and a related object, e.g. opportunity. I'm getting this message when running the code ...
2
votes
2answers
742 views

How to dynamically creating chatter groups in Apex?

It looks like ConnectApi.ChatterGroup is abstract. Is there really no way to create Chatter groups via connect in Apex? Is the solution to call the chatter REST API from APEX? UPDATED based on ...
2
votes
0answers
941 views

Chatter in APEX (Connect API) with VF: Best practices to avoid limits

I am currently working on using "Chatter in APEX" aka ConnectApi to display feeds from custom object records in a Visualforce page. I am using one VF page with links that re-render the same page but ...
9
votes
2answers
383 views

Does 'Chatter in Apex' aka Chatter Connect API support Bulkified insert operations?

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 ...
4
votes
1answer
486 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
466 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
2k 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 ...
11
votes
4answers
3k 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 ...