Skip to main content

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.

Filter by
Sorted by
Tagged with
43 votes
6 answers
119k 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 ...
Ashish Narang's user avatar
8 votes
3 answers
12k 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 ...
Prafulla Patil's user avatar
15 votes
4 answers
11k 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 ...
jackerman09's user avatar
  • 1,913
7 votes
2 answers
3k 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?
Prafulla Patil's user avatar
6 votes
2 answers
12k views

Unable to @mention Partner user on chatter feed by Salesforce Internal User

I have a usecase wherein a Partner user creates a Case which gets assigned to internal Salesforce user. The agent resolves the case and wanted to collaborate with the partner user with @mention tags ...
Jatin Jain's user avatar
3 votes
1 answer
3k views

Chatter REST Api User Photo Example

I'm looking for an example that uses the Chatter REST Api to upload a User Photo. The documentation explains the syntax, but they don't give an example of the HTTP form data to POST. Elsewhere in ...
Matt K's user avatar
  • 3,410
25 votes
5 answers
28k 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 ...
powlo's user avatar
  • 2,660
11 votes
4 answers
14k 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 ...
Matthew Lamb's user avatar
7 votes
2 answers
16k views

Query Chatter Feed, Topics, and Groups

First off, my end goal is lofty and time-consuming, but we need metrics and this is the best way to do it (that I can think of). Originally, a chatter post was created on the quote, case, or where ...
Grant's user avatar
  • 330
7 votes
2 answers
4k 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 ...
Karthik's user avatar
  • 71
6 votes
2 answers
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.
Kishan Trambadiya's user avatar
5 votes
2 answers
6k views

Link in Process Builder chatter post

I've created a workflow using the process builder and added a Chatter Post as an action. How Can I add a link to that post, a link which people can click and go to a SF record?
Dedo's user avatar
  • 5,017
5 votes
2 answers
2k views

FeedItem Trigger - Parse Mentions?

There are many questions out the about how to add @mentions to a chatter post, but this question is the other way around: How do I read @mentions from a FeedItem in the trigger context? I need to ...
Adrian Larson's user avatar
  • 150k
5 votes
1 answer
3k views

Sharing Feed Item with Chatter Group

I am capturing YouTube URLs in a Custom object, and I want to post new submissions to a chatter group. But I also want to take advantage of the nice inline youtube player in Chatter Feeds, which I ...
BritishBoyinDC's user avatar
5 votes
1 answer
3k views

SOQL query FeedItem by community

I would like to query feed items on a specific community, but can't figure out how to do so in SOQL. For example, this query returns no results. SELECT Id,Body,NetworkScope FROM FeedItem WHERE ...
David Reisch's user avatar
3 votes
1 answer
7k views

Cannot get notifications on records that I follow

I want to follow a record so every time someone posts to the record chatter - I will get notified. I cannot get this done. What I have done so far: Enable Feed Tracking for the object with selected ...
Itai Shmida's user avatar
  • 5,045
3 votes
2 answers
4k views

@mention in chatterfeed apex

Can I tag any user in chatter feed (@mention) from apex? List<Opportunity> testList = [SELECT id,name from opportunity where name LIKE '%test%']; List<feeditem> testfeed = new List<...
Anurag's user avatar
  • 2,236
3 votes
1 answer
681 views

Can Chatter Connect API set createdByUser to other than logged in user?

I know this question has been asked earlier but I could not find the answer. I am trying to create chatter Feed using Chatter connect API and my need is "Createdby user should be different than ...
arjun singh's user avatar
1 vote
2 answers
1k views

Use standard stylesheet with custom for Chatter VF page

I am designing a custom styled vf page that will show the user's chatter feed. I am trying to use the chatter:feedWithFollowers component but all the styling goes away when I use the ...
DevelopHawaii's user avatar
1 vote
0 answers
60 views

is it possible to integrate a chatter news feed from two seperate orgs?

the senario is that we want to be able to have a 3rd party supplier share post and info from their SF org with users on our internal SF org. I woulld like to know more about the different options ...
HUw Weller's user avatar
11 votes
1 answer
2k 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 ...
Matt Lacey's user avatar
  • 25.7k
11 votes
1 answer
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 ...
jordan.baucke's user avatar
9 votes
2 answers
856 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;...
PK85's user avatar
  • 785
8 votes
1 answer
6k 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 ...
Keith Mancuso's user avatar
8 votes
1 answer
3k 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 ...
Enry's user avatar
  • 3,726
7 votes
1 answer
7k views

As of Winter ’24, Chatter emails are no longer sent from orgs

There are a increasing number of cases where administrators are complaining that the chatter email notifications are not going out after the Winter '24 Salesforce release. What is causing this?
Mohith Shrivastava's user avatar
7 votes
5 answers
4k 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 ...
Michael Soriano's user avatar
7 votes
1 answer
396 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 ...
Matt Lacey's user avatar
  • 25.7k
6 votes
4 answers
8k views

Can't Insert CollaborationGroup in Test Class

I've got a Trigger that will automatically add newly created Users to our companies main chatter group. It works as expected, but the test class is failing for some strange reason! When I try to ...
Dan Jones's user avatar
  • 7,227
5 votes
1 answer
4k views

Custom VF Page for Publisher Action to Create Post on Chatter Group linked to Opportunity

I'm working with an answer submitted here to be able to post to a group and automatically link to an Opportunity. I'm going to use the VF page as a custom Publisher action. This post was very ...
OfficeGnome's user avatar
5 votes
2 answers
6k views

How to access the profile photo of a user in a Lightning community?

I am trying to make an application that would present chatter content to be displayed in a lightning community. What would be the best way to display the profile photo of the user who posted this ...
Etienne Rocheleau's user avatar
5 votes
2 answers
998 views

Apex Auto-Follow in Chatter

I need to develop Apex code to allow team members to auto-follow in Chatter when they are added to the Account. Team members are added to fields, and our consultant developed code to push the field ...
italiahall's user avatar
4 votes
3 answers
25k views

How to Share a ContentDocumentLink using "Set by Record"

I want to use the "Set by Record" sharing option of Chatter files introduced in Winter '16. As far as I understood I have to add an AfterInsert trigger on ContentDocumentLink and reset the ShareType. ...
Robert Sösemann's user avatar
4 votes
3 answers
3k views

Can you restrict Chatter mentions by Profile in Salesforce Communities?

We have 1 Community that both internal and external users of the company have access to. We've created 2 separate Salesforce Profiles for each: Internal Community User External Community User ...
Kevin's user avatar
  • 41
4 votes
1 answer
666 views

how to update a field if user follows a record

My use case is to find total followers on a particular record So when somebody follows/unfollows that record i would like to update the number of followers of that particular record .stored as a ...
sfdc99999's user avatar
  • 3,585
4 votes
1 answer
4k views

Image upload to chatter post

I am trying to send image to chatter post from my Android app and I am using below code to do this. String url ="https://ap1.salesforce.com/services/data/v25.0/chatter/feeds/news/me/feed-items"; ...
Sandeep Agrawal's user avatar
4 votes
1 answer
10k views

Error: The Connect API is not enabled for this user type

I am working on creating a Force.com site and I have a VF page which displays fields from a custom object record and also displays its Chatter feed. I achieved displaying the Chatter feed using the ...
Richard N's user avatar
  • 3,812
4 votes
2 answers
9k 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 ...
wisemanIV's user avatar
  • 883
4 votes
2 answers
4k views

How do I write tests for custom classes that primarily use ConnectApi?

I have implemented a VF page that displays a Chatter Group feed using the example classes provided in the Salesforce Cookbook. I have implemented all of these classes (with some tweaks and added ...
steve.westfall's user avatar
3 votes
2 answers
2k views

Can we open files/attachments in Salesforce1 without enabling Chatter?

It appears the only way to open files in Salesforce1 is via "Salesforce Files" - previously called, "Chatter Files" which is tightly coupled to Chatter. When creating Chatter files, it seems to piggy ...
rcraven's user avatar
  • 640
3 votes
0 answers
379 views

References to URLs returned by Apex ConnectApi in Salesforce1 mobile

I have a VF page that I am using as an inline page on the Opportunity detail page layout. It retrieves and displays files (FeedItems with ConnectApi.ContentCapability) from Chatter feeds on records ...
ArtieBrosius's user avatar
3 votes
1 answer
2k views

Can community users reference internal users in Chatter?

In my organization the Account object has public read/write on the sharing settings, and my community users can only @mention the system administrators and other people from the same community on ...
Renato Oliveira's user avatar
3 votes
1 answer
18k views

Upload files to a Case in SalesForce via REST API

I'm working on uploading attachments from my website to Salesforce, attachments should be related to case object. I'm using REST API in PHP. So problem is that I get an error when I tried to upload ...
iurii_n's user avatar
  • 133
3 votes
1 answer
1k views

Copy Chatter feed from one object to another (of other SObject Type)

I need to migrate data from one object type to another. Including their Chatter feeds. First task is simple, but the second? How would I best approach this? Are there AppExchnage tools for that or ...
Robert Sösemann's user avatar
3 votes
3 answers
3k views

Unknown user permission: ChatterInternalUser while deploying the profiles

getting following error : Unknown user permission: ChatterInternalUser while i am deploying profiles. following the xml file : <types> <members>Accounting</members> <...
patelkiran3090's user avatar
2 votes
1 answer
2k views

How to refresh the chatter feed or feed item automatically?

When i create a feed item through APEX, the chatter feed does not show immediately unless i refresh the chatter page or click the Feed link in the left navigation on the chatter page. Is there a way ...
Bforce's user avatar
  • 6,828
2 votes
5 answers
12k views

Flow - Create Chatter @ Mention Post

Ok, I have my flow creating a FeedItem record but I can't get the @mention to work properly. I am posting to a Chatter Group so I can't use the ParentID field and the related to field is referencing a ...
Matt M's user avatar
  • 1,477
2 votes
1 answer
5k views

LWC as Quick Action on Case Object is not showing

I have created Action as LWC and my xml tragets are <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata"> <apiVersion>55.0</apiVersion> <...
Rit's user avatar
  • 23
2 votes
2 answers
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 ...
jackerman09's user avatar
  • 1,913
2 votes
3 answers
5k views

A Chatter Feed related to a Record as well as a Chatter Group

I have a business case where currently we post chatter feeds to a Chatter Group using Apex. This is done by assigning the CollaborationGroup (chatter Group) Id to the ParentId field on the FeedItem. ...
Vishal's user avatar
  • 325