Questions tagged [feeditem]

FeedItem represents an entry in the feed, such as changes in a record feed, including text posts, link posts, and content posts.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
75 views

Emails and Notification are not triggered after creating FeedItem record in Apex

After creating a FeedItem record in Apex, emails and notifications are not triggered to the person who had created the chatter FeedItem. So do I need to create a custom notification and email for this?...
Pradhyuman Sharma's user avatar
0 votes
1 answer
71 views

Collaboration Groups not showing in the Community in Salesforce

I created a group with in salesforce which is a public group. I am able to see that group within salesforce but that group is not visible in community. Can someone tell me why it’s happening?
Nature Lovers's user avatar
0 votes
0 answers
36 views

Salesforce "Knowledgeable People" component not showing data in community salesforce

I have dragged the "Knowledgeable People" component on the topic detail page and configured it as per the guidelines given in the documentation. But the data is not getting shown in the ...
Nature Lovers's user avatar
0 votes
1 answer
67 views

How can I get the view count of the discussions(Feed Item) in apex in Salesforce?

I am building a custom component where I want to show discussions with the number of views on it. I checked the feeditem object but there is no field for view count. Is there some other object which ...
Nature Lovers's user avatar
0 votes
0 answers
47 views

Is there a way to get the share count of discussions in community salesforce?

I'm working on a component and need assistance with retrieving the share count of a FeedItem using Apex. I have explored the Salesforce documentation and resources but haven't been able to find a ...
Nature Lovers's user avatar
0 votes
0 answers
34 views

Use Specific Case Field to Create Chatter Feed Item

Currently I've noticed when a Chatter feed item gets created for a Case record, the Auto Number field is what the Post initially gets created with. We've got a separate Case Name field that is more ...
Developer Guy's user avatar
0 votes
0 answers
46 views

Change view of feed item

I have Email action in feed section on Case object. When I send an email i have a post below this action and the preview ( before collapse ) is showing first words of email body. Can i change it to ...
Kuba Disko's user avatar
1 vote
1 answer
116 views

get user id in feeditem salesforce

Good morning, I have this trigger to try to retrieve the mention id of a user in a feeditem. I need to send a custom notification to the mentioned user and my trigger has the following error. Does ...
Karen's user avatar
  • 11
0 votes
2 answers
1k views

Is it possible to find ContentDocument and attach that file to a FeedItem through a flow?

I am trying to create a feeditem and trying to find a documentcontent file and attaching it to this feeditem through a flow. I think I can find the version of the contentdocument by looking at the ...
Hulk Buster's user avatar
1 vote
0 answers
614 views

How to determine if a given User can view a given FeedItem

I'm using the query API to retrieve User and FeedItem objects. I want to be able to determine which users can read/view which feed items. FeedItem has Visibility property, but it doesn't help much. ...
Mugen's user avatar
  • 111
1 vote
0 answers
132 views

Chatter Posts created from Apex not visible from Profile view

I am creating a chatter post (FeedItem) from a trigger on a custom object after update of that object. I want that post to be visible on the user's profile that I have specified in the ParentId. The ...
Jacob22's user avatar
  • 21
0 votes
1 answer
634 views

Is there a direct link between CaseComment and FeedItem records?

Trying to find a way to link FeedItem records to the CaseComment they are related to. Have a Lightning Component pulling in Case information, but failing to find a reliable way to relate the replies ...
Tim Hunter's user avatar
0 votes
0 answers
69 views

Cannot change Status of FeedItem in trigger

I have a simply spam classification logic in trigger which runs when a community user posts a post (FeedItem) in experience cloud sites (community sites). trigger FeedItem_Operation_Trigger on ...
AmanSharma's user avatar
0 votes
1 answer
353 views

Apex Trigger to Update Feed Comment

I am new to Apex Triggers. I have a checkbox field in Opportunity called "Opportunity Approved?". Currently as soon as user selects the checkbox, its adding a feed comment like this, ...
Kirti Jha's user avatar
1 vote
0 answers
317 views

How to detect user is using Experience Cloud/Community Portal during while posting through chatter feed?

I've very entry-level knowledge about Communities & Portal, correct me if my understanding is wrong. Scenario: Internal users can create Cases in the Org, on the other hand, external users can ...
Mehedi's user avatar
  • 399
2 votes
2 answers
301 views

How to change the 'Disable Feed Tracking' setting in a flow or Apex trigger?

Salesforce has a setting called 'Disable Feed Tracking' a.k.a. DisableFeedTrackingHeader. The Data Loader uses this setting to disable feed tracking when doing updates/inserts. I am using Microsoft ...
Sander de Jong's user avatar
1 vote
1 answer
603 views

Update record via Flow does not create a Feed Item

I have a Record Triggered flow on Account, of the type Fast Field Updates. This flow, amongst other things, updates the Type field. I have configured feed tracking for that field. I observe that the ...
Sander de Jong's user avatar
0 votes
1 answer
469 views

Preserving @mentions in the FeedItem trigger edit

I have written before insert trigger that concatenates Case Subject to the Chatter post when it is posted from the case record. But when I do that, @ mentions are getting stripped from the chatter ...
Akshay Vasu's user avatar
1 vote
1 answer
346 views

Workaround of Misleading error "The configuration of your org has changed, please reload the page. Missing dependent object: SObject: Settings__Feed"?

Back in September the 23th 2021 I have opened a case in Salesforce Support about the issue on our project "The configuration of your org has changed, please reload the page. Missing dependent ...
Patlatus's user avatar
  • 16k
0 votes
1 answer
887 views

Populate Case Subject in Chatter feed post

We are using salesforce cases and Case owners have been using Chatter to ask questions about the case. The problem is that chatter messages sent from cases only show the case number in the email. ...
Akshay Vasu's user avatar
1 vote
1 answer
78 views

SOQL CustomObject__Feed See Just see posted messages (different from draft) (Chatter)

I am doing the following SOQL query to retrieve all messages on Chatter for the Essai custom object select CreatedById, CreatedDate, parent.Name, parentId, Id, Body, ...
arnaud's user avatar
  • 104
0 votes
1 answer
634 views

Get FeedItem and TopicAssignment details from FeedComment

I'm trying to build a query which would get all comments and the Topics assigned to the FeedItem they belong to but looks like I have hit a snag. This is what I'm trying right now --> SELECT Id, ...
Maverick's user avatar
0 votes
0 answers
28 views

How to get a hyperlink in the Post Body in Salesforce without using LInkURL? [duplicate]

As I am using this code to add a feeditem in the case. As it created a feeditem on the case but hyperLink is not working. In the documentation we got that isRichText supports the tag but in my ...
Manas Gupta's user avatar
1 vote
1 answer
422 views

Chatter - Can conversations that mention objects appear in the object's Chatter feed?

We are exploring the use of Chatter to replace some business comms that are currently use Slack. If I mention an object (e.g. an Opportunity) on a chatter feed, can the conversation be displayed on ...
StevieP's user avatar
  • 151
0 votes
1 answer
486 views

How to notify users

I want to notify my users without any specific record related. Insert a FeedItem with the parentId set to the userId does not create the red notification in the top-right corner bell. Do I need to use ...
Gabriel Serrano Salas's user avatar
0 votes
1 answer
236 views

How can I change the FeedItem's sender?

In the case of the image, the user Alanna Clark updated an account and my trigger runned and posted the FeedItem. But I want to change the sender ("Alanna Clark") for another user called &...
Cline's user avatar
  • 143
1 vote
1 answer
414 views

Setup ConnectApi.FeedElementPage with message mentions for Test (setTestGetFeedElementsFromFeed)

I have a class that uses ConnectApi.ChatterFeeds.getFeedElementsFromFeed and from the result page I extract the mentioned users. This is working as intended but now I have to create a test for this ...
Sadistik's user avatar
0 votes
1 answer
687 views

How to find FeedItem where a ContentDocument is the RelatedRecordId

Given a ContentDocument, I need a way to use SOQL to find any FeedItems that the ContentDocument may be related to. I hoped that ContentDocumentLink would work, but that just seems to give me the case ...
Scott B's user avatar
  • 17
0 votes
1 answer
186 views

How to render one component after another

I have an aura component which is a combination of forceChatter:Publisher and forceChatter:feed. But here in my case forceChatter:feed is getting rendered before forceChatter:Publisher. I want ...
Rahul Allada's user avatar
1 vote
0 answers
433 views

FeedItem Trigger is not executing

I have a trigger in FeedItem which needs to fire when an article is attached to the case. Here is the trigger: trigger FeedItemTrg on FeedItem (after insert, after update) { for (FeedItem fi : ...
Tamil's user avatar
  • 714
-1 votes
1 answer
189 views

SFDX Source Push: Invalid type: FeedItem

I am getting error: Invalid type: FeedItem When I run command: sfdx force:source:push Why won't it let me push that code into my scratch org?
Robs's user avatar
  • 9,187
2 votes
0 answers
493 views

'Enable Unread/Read on Compact Case Feed' feature impacting forceChatter:postCreated?

New feature: Enable Unread/Read on Compact Case Feed enabled in Support Settings from Winter '20 https://releasenotes.docs.salesforce.com/en-us/winter20/release-notes/rn_cases_unread_read_feed_items....
Monica Brie's user avatar
1 vote
1 answer
782 views

Opportunity Owner.Email returning null in Apex

I am trying to send emails to Opportunity owners when a portal user posts in chatter. But I can't seem to access the owner email from below Oppty query - it is returning null. However, when I query in ...
SF_newbie's user avatar
1 vote
0 answers
20 views

Is there any way to have a very lazy evaluation of Labels used in Salesforce Chatter messages?

I'm currently working for a company whose main language is German though they are an increasingly multilingual company. I have a requirement that when some event happens, notifications should be sent ...
Brian Kessler's user avatar
0 votes
2 answers
2k views

How to create a Case Feed Item when creating a Task

The documentation seems to say that when you create a Task or Event related to a Case then it will automatically create a FeedItem ActivityEvent—indirectly generated event when a user or the API ...
Robs's user avatar
  • 9,187
0 votes
1 answer
709 views

How get FeedItem with type TrackedChange

when i execute this: Account acc = new Account(Name = 'newTest1',Phone = '+4444444444'); insert acc; acc.Name = 'ChangedTestAnonimusAcc'; acc.Phone = '+55555555555'; update acc; List<FeedItem> ...
Noker's user avatar
  • 57
0 votes
1 answer
561 views

Unable to set isRichText to true with Flow

I have a flow that copy a Chatter post to the chatter of a related record. The issue is that there are unwanted html tags added to the chatter of the related records: I try to update the record ...
chloe's user avatar
  • 243
0 votes
1 answer
378 views

Customer user cannot create chatter post on a community group

I have an issue when I try create a post from an apex class, the user is a customer community user and I create the post from a Lightning community ConnectApi.ChatterFeeds.postFeedElement(Network....
MatteoL's user avatar
0 votes
0 answers
106 views

inputRichText removing alt and title attribute and showing title null after post

I am creating Feed Posts using a custom component in which I have used lightning:inputRichText But it is removing alt and title attributes from the anchor tag. And if I am not passing the alt and ...
dinesh.kumar's user avatar
0 votes
0 answers
56 views

POST as another user using Salesfore API. (Sender Id unavailable in request body)

I am trying to use chatter REST API to GET and POST data into custom C# application from a Salesforce. I am able to get data successfully. But, when I try to POST data into Salesforce as a particular ...
Aravind kumar's user avatar
1 vote
2 answers
750 views

How to access Owner of Parent Record of FeedItem

I am trying to send emails to the owners of cases when people post to the case feed. Traversing up through parent records seems to have some strange functionality: for(FeedItem FI : FeedItems ) { ...
number41's user avatar
  • 928
0 votes
1 answer
555 views

Display Community collaboration group announcements using LWC

In our ORG, we use both Salesforce and Customer Community Plus licenses. Its not a public community. You need to login to access any pages on our site. I built LWC Component (apiVersion: 47.0) to ...
gkolan's user avatar
  • 113
1 vote
1 answer
386 views

Access Errors on FeedAttachment for Chatter Test Class

I am designing a test class for a Chatter component controller I did not design, and I am having issues creating test data. I have posted code below my issue description. I have removed most of the ...
AusNC's user avatar
  • 13
1 vote
1 answer
851 views

How To stop feedItem for status field on Case?

I have enabled feed tracking for Case. But the status field is not set to tracking. But I am still able to see the feedItem on status changes. Please, let me know if I am missing anything or it can ...
Krishna Bidwai's user avatar
1 vote
0 answers
727 views

Email Message on Case Feed - Is it Possible To Show the "From" Address Not the "To"

We are using Service Console with Feed Enabled Layouts on Cases. We are using a programmatic solution to consume Email replies to existing Cases and save the Email on the Case. In the Case Feed an ...
Edwin Schaeffer's user avatar
1 vote
0 answers
172 views

Remove email Updates on Case Feed

I have an email action on case. When a user sends an email, the details about the email are displayed in the Feed. I would like to remove the details from the feed. Is it possible?
Amira's user avatar
  • 36
3 votes
0 answers
196 views

Which Type of FeedItem Records can I import?

I am facing a SF to SF migration and despite all efforts to avoid it, chatter posts have to be migrated as well. I wanted to know which types of chatter posts I am actually able to create via the API ...
Robert Méndez's user avatar
2 votes
1 answer
273 views

How to link to SObject within Case Feed in console-friendly fashion?

I have a requirement to add a link from one case to another within the case feed. This will happen from a future method called from trigger context, so it should be bulk safe. For this reason, I'd ...
Jason Clark's user avatar
  • 11.8k
0 votes
2 answers
390 views

How to add new picklist values in Feed Item Type, so that they can be available in Feed Filter Criteria during feed filter creation

I wanted to create a Feed Filter which can display only Tracked changes.But Tracked Change is not available in Feed Filter criteria. Is there any way to add that value under Feed Item Type.
Bhanuchandar's user avatar
0 votes
1 answer
96 views

Announcement is null when queried on feedItem Trigger

When i try to fetch announcements from feedItem trigger it returns null always, is there anything i'm missing trigger Email_Feed_Trigger on FeedItem (after insert) { Set<Id> myfeed=new set&...
Ramesh's user avatar
  • 23