Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [chatter]

Chatter is a feature of Salesforce.com that provides a way for users to collaborate with other users within a Salesforce organization. It has a Facebook like interface that allows users to follow records and other users, share files, update statuses, like posts, and post questions or comments at specific records or users. It is marketed by Salesforce as a cornerstone of the social enterprise.

27
votes
4answers
39k views

How to get salesforce instance url

To access chatter rest api using APEX code, I need salesforce instance server url in following format: https://na17.salesforce.com Is there any method which works in all cases Case 1: Any ...
22
votes
3answers
9k views

Remove Record Type from Chatter Profiles

I want to remove the Record Type applied to a Custom Object. There will be no record types at all. I cannot remove one of the record types because its set to the default for several profiles (in fact ...
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 ...
11
votes
1answer
355 views

Is it possible to access Chatter influence in Apex?

Chatter Influence is accessible through the REST API, but not through Chatter Connect. Is there any convenient way to access influence, or do I have to make a call out (and back in) to the Chatter ...
10
votes
1answer
2k views

How to do a multi-level relationship query on Chatter/Comments

Trying to perform a SOQL query to retrieve related FeedItems and FeedComments (on the related FeedItems) to my sObject and I retrieved a warning that multi-level queries aren't allowed. Can anyone ...
10
votes
1answer
88 views

CORS issues with Chatter API Photo Posting

I have a Chatter Communities API request that creates a new user profile picture. This API callout works when I use an app like Ruby or even a cURL command. However, using an AJAX callout, I get a ...
9
votes
4answers
11k views

How to query all Chatter Files attached to a record?

We're trying to build a custom Visualforce related list that will show all the Chatter Files that are related to a record. All files should be displayed, regardless of if they are explicitly shared ...
9
votes
1answer
2k views

Isolate and Disable Chatter

Possible that in the future I will train users on chatter, but currently attempting to reduce the surface area of Salesforce that requires training and management. Appears that if I turn off chatter, ...
9
votes
1answer
693 views

Is There a Way to Get Chatter Notifications?

If you @mention or send a message to a Chatter user, you get a notification in Salesforce1. This appears immediately so it's a safe bet that push notifications are being used to dispatch them. However ...
9
votes
2answers
575 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 {get;...
8
votes
1answer
2k views

@Mention with apex code

In this post i want mention the user. I'm using the connect apex chatter. I'don't know how mention the user with u.id,and now i'm getting an error: FATAL_ERROR System.NullPointerException: Attempt ...
8
votes
2answers
754 views

Do Chatter Desktop & Chatter Mobile Apps Use the Chatter Connect API?

I may be firing in the dark but I want to know some insights into how the Chatter Desktop and Chatter mobile apps (such as iOS & Android) work. Do these tools use Chatter Connect API? I ask this ...
8
votes
1answer
2k views

Salesforce1 mobile app + Chatter Community

We are a small NPO with a decent sized network. We have an active chatter instance in our chatter community pages for our partners. We have no need for an internal chatter feed in our SFDC CRM. I ...
8
votes
2answers
526 views

Query Chatter Comment Files for a group of records

My question is similar to this one except that I need the files for a group of records, making the solution of querying ContentDocumentLink unworkable, because it requires a single Id for the where ...
8
votes
2answers
2k views

Is it possible to modify Chatter Email Notifications?

We have now implemented Communities for most of our customers. Therefore we are using Chatter instead of Case Comments and are considering if / how we could customize the automatic Email Notification. ...
8
votes
0answers
51 views

Hide Chatter in Home Page after Summer 15 [duplicate]

Salesforce is phasing out the use of arbitrary HTML on Home Page Components. I have used CSS or JS solutions to hide the Chatter Feed from within a HTML Home Page Component. This allows a more ...
7
votes
2answers
10k views

Adding users via Data Loader and activating them in one step

I have an idea, don't know whether or not it's possible. I need to add ~ 200 users to my org and have them all activated at the same time and have activation emails sent to their user email address. ...
7
votes
1answer
4k views

Preview Chatter File in Visualforce

I've found a lot of people talking about this but no real answers. What I am trying to do is simple just show a little thumbnail preview of a file in a custom component SELECT ContentDocumentId FROM ...
7
votes
2answers
1k views

Posting to Chatter via APEX in a Managed Application - Allow Chatter to be disabled

We are going to enhance our managed package by adding automatic chatter updates when a user takes certain actions in the application. I found some examples in the Chatter Code Recipes that works ...
7
votes
3answers
2k views

Get the body of Chatter files?

Using Apex, how can I get the body of files uploaded using Chatter? I want to send the document with web service methods.
7
votes
1answer
317 views

Database.DMLOptions - How to prevent Chatter Group Auto-Follow trigger from generating email

Currently I have a trigger which auto-follows specific groups in our organization when a new user is brought onboard. The auto-follow trigger feature works great! However, we have quite a few groups ...
7
votes
2answers
2k views

Trigger to avoid file upload to chatter comment

We want to avoid, that a user is able to upload files to chatter comments. We realized this by creating triggers on FeedComment and ContentVersion. This prevents to save the comment successfully. If ...
7
votes
1answer
240 views

Invite people to user chatter via Apex code

when I'm within a chatter group I can do two things: Add a group member Invite people I know how to add a group member via Apex code, however I need to invite people to join this group through an ...
7
votes
2answers
2k views

Receive this error from installed package 'System.QueryException: sObject type 'CollaborationGroup' is not supported.'

I am getting the error - 'System.QueryException: sObject type 'CollaborationGroup' is not supported.' When running the following code as part of a managed package by scheduled apex: List groups =...
7
votes
1answer
728 views

Using a flow, can you post in Chatter on behalf of another user

In our community, we want to post automated welcome messages in Chatter. Does anyone know if it is possible to use a flow and process builder to post to Chatter on behalf of another user, like say a ...
7
votes
1answer
271 views

No records returned from SOQL query on FeedComment with Left Inner Join

I'm trying the following SOQL query on the FeedComment object on workbench and getting no records returned, though there are definitely records that should be returned. SELECT Id, ParentId, ...
7
votes
3answers
7k views

Create Chatter post with mix of HyperLinks and text in the Body (in Apex code)

How to create a chatter post in the body I want to add Links in between. (in Apex code) its not complete link or complete plain text. I am looking at mix of both Example Chatter post - just has ...
7
votes
2answers
678 views

Accessing Chatter API in Communities

I'm Having trouble accessing the Chatter API in the context of a community. Mainly, we have a certain type of user that only has access as a user of a SalesForce community we are using to act as an ...
7
votes
1answer
250 views

What Controls the URL Format for Chatter Content?

When I query the chatter connect API through Javascript from a Visualforce page in a desktop browser, the post attachment URLs I receive use the visualforce domain that the page is being served up ...
7
votes
2answers
2k views

User Trigger while changing the Chatter Profile Picture

The chatter profile picture url is saved in the User FullPhotoUrl field. If we try to modify the picture/upload a new picture in the chatter profile image, the trigger in the user object is not ...
7
votes
2answers
888 views

Custom link or button to download most recent version of chatter file

Is there a particular url I can put into a custom link or button that will link to a chatter file, that when clicked will download the most recent version? I know I can use the download url to get a ...
7
votes
0answers
1k views

Email chatter followers on every post to record

I want to email all the followers of a record anytime anyone posts to the chatter feed. I assumed this would be simple but it doesnt seem to be built into the system? It seems like im gonna have to ...
7
votes
2answers
303 views

Importing historical notes into Chatter Feed

I want to import freeform notes from another system into Salesforce. I'll like to import this data into the Chatter feed using the API (we'll write a custom importer). But I need to set the created ...
6
votes
2answers
2k views

What is the SObject for a private message?

I want to monitor private message and want to check and store at admin side. so admin can see who doing message to whom and make the policy for to sending the message.
6
votes
2answers
3k views

How do I add Chatter onto a visualforce page? Is it possible ?

Hi I just migrated my portal to communities. And I've added extra functionalities such as self registration and my profile page. I'm wondering if its possible to add a salesforce chatter onto a ...
6
votes
2answers
2k views

Enable or check Chatter Feed Tracking programatically

Is there any way to enable Chatter Feed Tracking programatically for a object in salesforce.com? If not, it is possible to detect if an object is chatter enabled?
6
votes
1answer
304 views

Access user's MY SETTINGS through apex code

For any individual user, he can click on MY SETTINGS. Navigate to CHATTER. Then EMAIL NOTIFICATIONS. There under Personal section, deselect "Follows Me" to stop receiving email notifications when ...
6
votes
1answer
2k views

Adding new “Files” related list to Visualforce page

I'm trying to add the new Chatter Files related list to a Visualforce page but not having much luck. In the past, in order to add the Notes & Attachments related list, you would use: <apex:...
6
votes
2answers
385 views

Querying Chatter tags

Is it possible to query Chatter tags via APEX? For e.g. if I'd like to know the tags associated with an Account record, can I query them using SOQL? Anup
6
votes
1answer
1k views

How to mention a user in a Chatter Group in an Apex Trigger?

How to mention a user in a Chatter Group in an Apex Trigger? There are similar questions existing in SFSE but they all seem to have outdated answers using old cumbersome APIs. I believe the easiest ...
6
votes
1answer
2k views

Upload a file to a chatter feed in Apex: API 36

I'm trying to upload a File to a Chatter feed using Apex API 36. It is straightforward in API 35, and Salesforce provides the code below. However it doesn't compile in API 36. Does anyone have a ...
6
votes
1answer
575 views

How to guard a FeedItem insert when code is executing in a Force.com Site?

I have some code that is used both through a normally licensed user and through a "Site Guest User" for a public Force.com Site. I am aware that for the latter type of User Chatter capabilities are ...
6
votes
2answers
462 views

SOQL Statement to get “Who commented on which author's post?”

I am trying to get a simple list of who in chatter commented on which authors post and I am struggling to get a correct SOQL. I want something like this Bob -> Dave Dave -> Martha Bruce -> ...
6
votes
4answers
802 views

In a trigger, telling the difference between a new Chatter File and a Link to an Existing one

I like using Chatter Files for Attachments because they are prettier and searchable. The downside is that, when you add one to an Opporutunity, you don't see it as an Attachment on the Account like an ...
6
votes
2answers
82 views

Custom objects in Chatter Mobile

Using latest version of Chatter Mobile (4.2). We have some related lists on the standard Opportunity object for custom objects. Is there a way to prevent these from being synchronized down and ...
6
votes
2answers
1k views

Chatter Answers in Visualforce Page

I need to display frequently asked chatteranswers feed (only questions need to be visible) in visualforce page.I don't want my users to post the questions or reply to questions in visualforce page....
5
votes
2answers
2k views

Does Salesforce1 Need Chatter To Be Enabled

I am new to Salesforce1. Having watched a few webinars, I am confused on whether it is mandatory to have Chatter enabled in order to use Salesforce1. Can someone please clarify what is the dependency ...
5
votes
3answers
1k views

Can I set a Salesforce Chatter user as account owner?

Is it possible to assign Chatter user as owner to Salesforce Account?
5
votes
2answers
1k views

How do we change Community Users' reputation points with Apex?

For users in Communities, we want to change their User reputation points with code (Apex). How do I do this?
5
votes
3answers
605 views

Lightning: Getting a 401 when calling @AuraEnabled Apex method to do a REST call

Trying to write an Apex method that accesses Chatter REST api using this technique: https://chintanblog.blogspot.com/2017/02/call-salesforce-rest-api-from-apex.html This method is @AuraEnabled - so ...