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
0 votes
0 answers
23 views

Is There an Easy Way to Create a Feed Using Custom Feed Items?

Lightning-Aura-Component I have an array of feed elements not connected to an Id and I need to make a feed containing these elements. Is there an easy way to do this or must I recreate an entire feed ...
user avatar
0 votes
0 answers
19 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 ...
user avatar
0 votes
1 answer
39 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, ...
user avatar
0 votes
0 answers
13 views

Poll not showing up on community feed

In Community (Customer Community License) I have added feed publisher which shows post/comments from each user. But when am creating poll for community users(using groups) , it is not showing up on ...
user avatar
  • 3
1 vote
0 answers
35 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 ...
user avatar
  • 322
2 votes
2 answers
76 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 ...
user avatar
1 vote
1 answer
145 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 ...
user avatar
0 votes
1 answer
76 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 ...
user avatar
1 vote
1 answer
60 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 ...
user avatar
  • 13.3k
0 votes
1 answer
167 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. ...
user avatar
1 vote
1 answer
26 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, ...
user avatar
  • 49
0 votes
0 answers
26 views

Avoid Creating Topics during FeedItem Migration

I'm uploading FeedItems to Salesforce from external system, but I'm facing the "Maximum topic per record limit reached." error when FeedItem body has #hashtags in it. I believe it's because ...
user avatar
  • 749
0 votes
1 answer
120 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, ...
user avatar
0 votes
0 answers
39 views

Disable Feed email notifications for community

On my community I added Feed component and create custom email notifications wich are sent in FeedItemTrigger. The problem is I have to disable standard email notifications for users on this community ...
user avatar
  • 1
0 votes
0 answers
18 views

I want to filter/check if feedItem/comments exist for a specific feedtype

When two users of same type open message window at same time and summited at different time, system creates two different threads of same type. But they are supposed to be in one thread. Scenario is I ...
user avatar
0 votes
0 answers
24 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 ...
user avatar
1 vote
1 answer
101 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 ...
user avatar
  • 131
0 votes
1 answer
122 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 ...
user avatar
0 votes
1 answer
77 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 &...
user avatar
  • 123
0 votes
1 answer
200 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 ...
user avatar
0 votes
1 answer
174 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 ...
user avatar
0 votes
1 answer
93 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 ...
user avatar
1 vote
0 answers
176 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 : ...
user avatar
  • 659
-1 votes
1 answer
102 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?
user avatar
  • 8,272
2 votes
0 answers
317 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....
user avatar
1 vote
1 answer
415 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 ...
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 ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
  • 8,272
0 votes
1 answer
315 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> ...
user avatar
  • 57
0 votes
1 answer
315 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 ...
user avatar
  • 223
0 votes
1 answer
240 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....
user avatar
0 votes
0 answers
60 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 ...
user avatar
0 votes
0 answers
47 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 ...
user avatar
1 vote
2 answers
397 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 ) { ...
user avatar
  • 648
0 votes
1 answer
409 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 ...
user avatar
  • 113
1 vote
1 answer
296 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 ...
user avatar
  • 13
0 votes
1 answer
371 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 ...
user avatar
1 vote
0 answers
241 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 ...
user avatar
  • 147
1 vote
0 answers
105 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?
user avatar
  • 36
3 votes
0 answers
73 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 ...
user avatar
2 votes
1 answer
115 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 ...
user avatar
0 votes
2 answers
248 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.
user avatar
0 votes
1 answer
73 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&...
user avatar
  • 23
1 vote
1 answer
420 views

What's up with CollaborationGroupFeed?

We're trying to display FeedItems for a Chatter group to our external users on a Community site. The obvious thing is to use the built in Feed component in the Builder. But that is disappointingly non-...
user avatar
0 votes
1 answer
812 views

Attachments in FeedItem After Insert Trigger

I'm trying to get the attachments from a FeedItem after insert trigger, but it does not return all the associated attachments. I understand attachments are inserted after the FeedItem is inserted (ref....
user avatar
  • 311
1 vote
1 answer
177 views

How can I mark 'Best Answer' through ConnectApi?

How do I mark an answer as Best Answer through ConenctApi? I tried setting bestAnswerId of ConnectApi.QuestionAndAnswersCapabilityInput but it does not mark the answer as Best Answer. ConnectApi....
user avatar
  • 311
0 votes
1 answer
62 views

Search in All Fields plus topics for feeditems

I currently have an SOSL query [FIND :finalSearchText IN ALL FIELDS RETURNING FeedItem(Id, Title WHERE Type = 'QuestionPost') LIMIT 10]; This works great for searching the feed item title and body. ...
user avatar
0 votes
0 answers
274 views

Unable to write BestCommentId on FeedItem in test class

I am trying to write a test class to test an Apex class that uses FeedItem object. The Apex class checks if the FeedItem record has a BestCommentId and does some actions. A snippet of the test data ...
user avatar
  • 311
4 votes
1 answer
161 views

Invoking trigger when an answer is marked as Best Answer in Chatter

I am trying to invoke a trigger when an answer is marked as 'Best Answer' in Chatter Question. I tried a trigger on FeedItem and FeedComment objects, but the triggers were not invoked when I mark an ...
user avatar
  • 311
0 votes
2 answers
321 views

Title attribute of <a> in FeedItem is replaced by null

I posted several FeedItems using Salesforce Rest API but the title attribute of <a> tags in rich texts were not working correctly for me. For instance, POST /sobjects/FeedItem/ { "...
user avatar