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
vote
1answer
39 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 ...
0
votes
0answers
17 views

Chatter - Sharing post to group - FeedItem Trigger - Which field references the shared FeedItem?

When a post is shared to a group, I'm trying to capture its contents in a trigger. My thought process is to capture the shared post within a FeedItem trigger since a new FeedItem is created when a ...
0
votes
1answer
37 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 ...
0
votes
0answers
16 views

Case Feed query does not contain some of Activities types

When I am querying CaseFeed information regarding certain Case record, output is not complete. It contains ChangeStatusPost, CreateRecordEvent feed types, but it does not contain for example Call Log, ...
0
votes
0answers
15 views

Post Feed Item in User Feed

I'm trying to use apex code so user will be able to post message in other user feed. Tried this simple code: ConnectApi.ChatterFeeds.postFeedElement(Network.getNetworkId(), targetUserId, ...
0
votes
1answer
31 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 &...
0
votes
1answer
55 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 ...
0
votes
1answer
44 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 ...
0
votes
0answers
14 views

Record feed doesn't update on Event creation via trigger

I'm trying to get the record feed of my leads to update when I create an event with an after update trigger, it's not working. When I create the event manually the feed gets updated, but not when it's ...
0
votes
1answer
36 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 ...
1
vote
0answers
52 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 : ...
-1
votes
1answer
37 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?
0
votes
0answers
72 views

How to create feeditem when creating a task via apex, which looks and feels the same as when creating a new activity manually that posts to chatter?

We have set up a new trigger that inserts tasks related to Leads (whoid is a specific Lead), and we want those tasks to post to chatter. I know you can insert a feeditem with relevant information. ...
0
votes
0answers
51 views

Trying to export FeedItem (chatter posts) using dataloader - stuck counting records

I am trying to export chatter posts (feeditem object - ideally with a contact reference/ID) using dataloader.io but no matter how I create the export job (or which instance I try it in) the GUI sticks ...
0
votes
0answers
79 views

Get ALL TopicId from TopicAssignment Apex SOQL Trigger

I'm working on an apex trigger that posts a new feed item every time someone adds a topic to a knowledge article in content management console. This feed item must be tagged with the topicid of the ...
2
votes
0answers
153 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....
1
vote
1answer
164 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 ...
0
votes
0answers
14 views

Is there a way to display only users in feed view?

I want only the users not community users or contacts to be displayed when I '@ mention'. I've found a workaround stating we can add validation by leveraging FeedItem trigger. But is there a way to ...
1
vote
0answers
18 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 ...
0
votes
2answers
559 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 ...
0
votes
1answer
131 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> ...
0
votes
1answer
157 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 ...
0
votes
1answer
143 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....
0
votes
0answers
43 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 ...
0
votes
0answers
44 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 ...
1
vote
2answers
234 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 ) { ...
0
votes
1answer
304 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 ...
1
vote
1answer
206 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 ...
0
votes
1answer
178 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 ...
1
vote
0answers
72 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 ...
1
vote
0answers
59 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?
3
votes
0answers
32 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 ...
2
votes
1answer
75 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 ...
0
votes
2answers
170 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.
0
votes
1answer
57 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&...
1
vote
1answer
345 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-...
0
votes
1answer
606 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....
1
vote
1answer
114 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....
0
votes
1answer
44 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. ...
0
votes
0answers
186 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 ...
4
votes
1answer
137 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 ...
0
votes
2answers
202 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/ { "...
1
vote
0answers
595 views

Create TopicAssignment in apex

I am attempting to automate some chatter stuff. What I want to do is use apex and create a new chatter feeditem, attach it to a group, and then assign a topic to it. I am doing this for a community ...
2
votes
0answers
278 views

Update FeedItem Body

I have very simple version of a class that needs to update body of FeedItem as part of a test class. updateFeed() is throwing this error message: "System.SObjectException: Field is not writeable: ...
4
votes
1answer
165 views

Posting Badge Information to Chatter

I'm trying to do a Thanks post via Apex. More specifically, I want it like this : These are the steps I have taken to be able to post a Badge. 1. Created a WorkBadgeDefinition Object 2. Connected ...
4
votes
1answer
620 views

Apex - Accurately Identify users tagged in Chatter comments and set them as followers automatically [duplicate]

I already know how to set someone to auto-follow a record based on specific criteria (record created, modified, etc) by inserting records into the EntitySubscription object. What I am trying to ...
2
votes
0answers
86 views

Case from Chatter question isnt working in lightning

I have strange issue happening on my instance I have case created from chatter question in the community (by process builder + quick action) yet when trying to reply from the chatter in the case I ...
1
vote
1answer
899 views

How to count Chatter posts in SOQL?

Is there a way to count chatter posts for a specific record? I tried simple query: SELECT COUNT() FROM FeedItem WHERE Type = 'TextPost' But this doesn't work in Apex since it throws an error ...
0
votes
1answer
399 views

Email is not firing for feeditem records inserted through DataLoader

When I am Inserting feed item records through dataLoader, the standard salesforce chatter email is not firing. But When I insert a record through UI, I am getting the mail. Also, the email is coming ...
1
vote
2answers
685 views

How to Open LinkPost URL in SubTab Console?

I am able to create LinkPost feed item in case console: //Adding a Link post FeedItem post = new FeedItem(); post.ParentId = cId; //case id post.Body = 'Enter post text here'; post.LinkUrl = '/' + ...