Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs
9 votes
Accepted

Access user's MY SETTINGS through apex code

It can be done. There is field called UserPreferencesDisableFollowersEmail which actually store the Follow me option data for the user. so if you want to do this via trigger or class just put the ...
Avijit Das's user avatar
  • 1,416
6 votes
Accepted

Query FeedComments for specific parent Type

Sometimes fields declared as Reference do not really work as references. In such cases you need to use some ugly workarounds like this one: SELECT Id, FeedItemId, ParentId, RelatedRecordId FROM ...
Patlatus's user avatar
  • 17.1k
5 votes
Accepted

How do I get the "What I follow" Feed using Chatter REST API?

It's in the News Feed resource. The great part about the Chatter API is that it is self-describing; if you go into the workbench, go to the REST Explorer, and start drilling down, you'll eventually ...
sfdcfox's user avatar
  • 494k
5 votes
Accepted

Create a Custom Chatter Stream from Apex ConnectApi

Here is example apex code of creating a simple stream subscribing to two entities (an account and opportunity). Since ConnectApi (aka Chatter in Apex) always runs as the context user then this stream ...
Doug Ayers's user avatar
  • 4,196
5 votes
Accepted

How can I make calls related to a case display in its Chatter feed?

You can do this in Apex if you fill out all the right fields. Task t = new task( WhatId = someCase.Id, // Case to log against CallObject = 'Call Center To Log To', // Gotten from CallCenter ...
sfdcfox's user avatar
  • 494k
5 votes
Accepted

Posting Badge Information to Chatter

For everyone confused on how to post a Thanks on Chatter WITH the Badge Attachment -- all you need to do is set the Type to RypplePost on the FeedItem and automatically the chatter post will display ...
user2582622's user avatar
4 votes
Accepted

Create chatter post with mention for API version 37.0

You can follow this example for posting a mention. However, the example pertains to older API versions. To use v37.0, you'll need to make a change to the last line. Instead of this: ConnectApi....
alouie's user avatar
  • 2,893
4 votes

mention user on chatter throwing error (method removed after version 31.0)

As per these Summer 14 release: The getFeedItem and postFeedItem methods are still supported, but to future-proof your applications, use the getFeedElement and postFeedElement methods. For example, ...
Rohit Mourya's user avatar
  • 3,871
4 votes
Accepted

Can community users reference internal users in Chatter?

I would think they can only mention members of the community. I believe you can add members by profile in the community settings. You could add all your internal users to the community this way. If ...
gNerb's user avatar
  • 9,491
3 votes

change css for visualforce page

To short answer this "There is no shortcut" If you are trying to restyle you will have to roll your own chatter(Using Connect in apex and custom HTML and CSS and JS) .This is not recommended ...
Mohith Shrivastava's user avatar
3 votes
Accepted

Code tag in Chatter

There's a way to post code snippets in Chatter using the Lightning Experience. You can't write inline code blocks like this, but you can make code blocks appear as preformatted paragraphs with some ...
alouie's user avatar
  • 2,893
3 votes
Accepted

@internal user not working for Customer Community User

Added internal user profile as member of community and that allowed internal and external users to collaborate on a record feed.
sfdc's user avatar
  • 13.7k
3 votes

Inserting Chatter FeedItems with type 'TrackedChange'

You won't be able to insert a FeedItem with Type TrackedChange. The documentation states that you cannot create a FeedItem with all Type values, but only few. Below is an excerpt from the Type field'...
Jayant Das's user avatar
  • 30.6k
3 votes
Accepted

Hide Follow button in community

Its not possible to hide Follow button in communties when you enable chatter feed. Please upvote below idea. https://success.salesforce.com/ideaView?id=0873A0000003VYDQA2
sfdc's user avatar
  • 13.7k
3 votes
Accepted

Set Default "From" address for email sent through Chatter Feed

Yes, You can pre-defined the from address on an email action. Open your action, click new on pre-defined field values section. Select from in the field to be pre-defined and then select the email ...
sanket kumar's user avatar
  • 15.4k
3 votes
Accepted

Can we change the UI of Chatter?

Unfortunately, you cannot modify these components. for any customization, you would need to create yours from scratch. If you do, you can use the ConnectApiHelper which can help you achieve many of ...
glls's user avatar
  • 20.2k
3 votes
Accepted

Is it possible to report on who liked a chatter post/feed?

Unfortunately, it doesn't appear to be accessible through reporting when creating report types. But, FeedLike is where the data you're looking for is stored for likes on posts (not comments). ...
Kris Goncalves's user avatar
3 votes

Mention username in chatter message

Add square brackets [ ] around the merge field, like this: [{!$Record.OwnerId}] Add an @ symbol at the beginning and a comma at the end, like this: @[{!$Record.OwnerId}], When followed by a value ...
Alexander Lee's user avatar
2 votes
Accepted

How can I remove the "Show Feed" section from the top of the Account page?

Go to Setup--> Chatter-->Feed Tracking -->Select Account --> Uncheck "Enable Feed Tracking"
sfdc's user avatar
  • 13.7k
2 votes

FeedAttachment: INVALID_OPERATION, Cannot create, update or delete Feed Attachment

Upon re-reading the FeedAttachment documentation there is this notice under Special Access Rules: You can read, create, update, or delete a FeedAttachment only if you have the corresponding access ...
Doug Ayers's user avatar
  • 4,196
2 votes
Accepted

Post into chatter group without access to the group

It's a very common problem. I have already faced the same issue.the solution is to move the same functionality in the trigger. As the trigger run on system mode,then there will be no issue regarding ...
Avijit Das's user avatar
  • 1,416
2 votes

The post from Chatter group in Salesforce not properly displayed

You can't without an insane amount of extra work. Javascript remoting ONLY returns the value from the method. You'll need to take that value and reformat it from scratch on your own. Visualforce will ...
gNerb's user avatar
  • 9,491
2 votes

Query FeedComments for specific parent Type

In addition to the answer already presented, you can't use LIKE operator on an id field, as mentioned in the docs The LIKE operator is supported for string fields only. Id is not a string ...
Mahmood's user avatar
  • 5,944
2 votes
Accepted

how to use the Visualforce chatter:feed component to display one feedItem (instead of the whole feed)

Since you're looking for only a single FeedItem record, just do a SOQL query for the FeedItem record and render the data on the screen. A FeedItem is a record just like any other; the VF component you'...
DavidSchach's user avatar
  • 5,903
2 votes
Accepted

How do I test that a ConnectApi.AnnouncementInput has been posted to a CollaborationGroup?

Chatter Announcements are nothing but FeedItem records. You can just query them after creating an announcement in test class SELECT Body,CreatedById,CreatedDate,HasVerifiedComment,NetworkScope,...
Pranay Jaiswal's user avatar
2 votes

How can I make calls related to a case display in its Chatter feed?

There doesn't seem to be a way to create a "Call logged" feed item on the Case, if you are not creating it from UI (or logged through CTI calls, details below). Based on some quick tests below are ...
Jayant Das's user avatar
  • 30.6k
2 votes

Hide Follow button in community

At present, There is no feature provided by Salesforce to hide/unhide the follow button in communities if chatter feed is enabled (as mentioned in earlier answers). However you can make use of CSS ...
Awinash Kr Sharma's user avatar
2 votes

Hide Follow button in community

Best code (from Brian Schwartz on Idea Exchange): .slds-button.slds-button--neutral.not-selected.slds-not-selected { display:none } .slds-button.slds-button--neutral.is-selected.slds-is-selected {...
Charles T's user avatar
2 votes

How To stop feedItem for status field on Case?

These objects and fields are tracked by default: Account: Account Name, Account Owner Case: Case Owner, Priority, Status Chatter Group: Allow Customers, Description, Group Access, Information Body, ...
sanket kumar's user avatar
  • 15.4k
2 votes

The Question Object is unavailable/not supported in My Org, even with chatter question enabled?

Looks like the question object is not functional. The developer console does not allow a query on this object (even using tooling API). The below snippet from the anonymous block gives "Invalid ...
Swetha Maddali's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible