What's the deal with Deno? We talk with a major contributor to find out. Listen now.

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
0answers
12 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....
0
votes
1answer
33 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
12 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
15 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
0answers
14 views

Feed Item records not found in test class flow

I have a requirement to purge all chatter feed that are auto created when case comments are inserted. Hence I am deleting all FeedItem records of type CaseCommentPost via CaseComment Trigger. Below ...
0
votes
2answers
80 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
40 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
0answers
12 views

Unable to Acheive Copy Feeditem and related feedcomment and attachment copy from case to knowledge

We had a requirement to copy, case's related feedItem, feedcomment and Attachment. I have tried to approach this through trigger, however the feedItem is copied to Related Knowledge article feedItem. ...
0
votes
0answers
9 views

Is it possible to copy feed item and case files from case object to its related Knowledge ARTICLE?

We have a development request from our client to set up KB in existing salesforce system there are many parts in this development . Part 1: Create knowledge article from case when a case status is ...
0
votes
1answer
35 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
38 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
18 views

Is there a way to change the “primitive” icon in a Chatter/Feed post when posting via Apex?

I want to change the Icon that the arrow is pointing to when making a Chatter post with Apex preferably on insertion. Is this possible? Is there another way to change the default "primitive" icon?
0
votes
0answers
34 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
35 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 ...
0
votes
0answers
25 views

Am I right in approach to create FeedItem for CallLog Task connected to Case entity

I'm working under Open CTI Softphone and create Call Log Task for every call. The Task is created from the Apex controller: Task task = new Task(); task.TaskSubType = 'Call'; ... task.WhatId = ...
0
votes
0answers
21 views

Community Feed Component Icon Urls are Broken

When on my Salesforce Community Site Some of my icon links are broken in the "Feed" Component. See Picture Below: The Weirdest thing is that the URL its embedding is wrong. It seems to be ...
1
vote
2answers
100 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
112 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
107 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
36 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
37 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
22 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
26 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
50 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
96 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
33 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
242 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
359 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
71 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
34 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
117 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 ...
3
votes
1answer
105 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
104 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
344 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
187 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
145 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
360 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
74 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
587 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
290 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
411 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 = '/' + ...
-1
votes
1answer
128 views

trigger on case feedItem when a chatter post is going on case it also receive by case team members [closed]

my need is that any time any chatter post is going on case Case Team Members should also receive it. i am using entity subscription for it? Basically here i want to do whenever some one insert a ...
0
votes
2answers
38 views

System.NullPointerException: Attempt to de-reference a null object(about feeditem object)

I'm trying to add an action on Visualforce Page which enable end users to post messages on a case. But when I click the button, I get an error like: System.NullPointerException: Attempt to de-...
1
vote
1answer
343 views

How to create a FeedItem that has mentions in it with SOAP API?

I am trying to insert feeditems with mentions on a case using SOAP API. Example - "This case was updated by @John Doe" where John Doe is a user in Salesforce. How do I make this happen? I have ...
5
votes
1answer
320 views

Sosl on FeedItems with network id

I am trying to query for FeedItems that belong to a specific community as follows: FIND {searchTerm} RETURNING FeedItem(Id,Title,Body) WITH NETWORK IN ('SomeID') However, I noticed that the query ...
1
vote
2answers
2k views

How Content Document Should be Associated with Custom Object

I am trying to create File through ContentDocument . Once File is created want to associate with Custom Object Want to understand what is best way to associate File with Custom Object Use FeedItem ...
0
votes
1answer
469 views

Email notification to all Opportunity Team Members

The task is to notify all Opportunity Team Members every time new chatter post appears in feed inside of the Oppty. Now we use the following script: trigger emailFollowers on FeedItem (after insert) {...
0
votes
1answer
382 views

Best way to upload Chatter file

According to this document, In version 36.0 and later, you can’t create a feed post and upload a binary file in the same request. Upload files to Salesforce first, and then use the file IDs to ...
0
votes
2answers
345 views

Querying TopicAssignment in Trigger on FeedItem (after insert)

I am trying to get the topics of a FeedItem after it is created. TopicAssignment is the object that connects each FeedItem to its topics. I've created a trigger on FeedItem (after insert) that will ...
0
votes
1answer
212 views

Chatter API call request Limit in Salesforce

We are using angular to display UI and Salesforce is being used to maintain database. We have a REST API class created which has the urlMapping. This class is used to find the records. We are using '...