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.
161
questions
0
votes
0answers
15 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
11 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
23 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
15 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
24 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
23 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
37 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
19 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&...
0
votes
1answer
83 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
88 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....
0
votes
0answers
40 views
Change FeedItemPost CreatedById using ConnectApi
I want to post chatter items via Apex with a link attached and an @ mention. I've been able to figure out how to attach the link and @ mention through research.
The next step to finishing this is to ...
1
vote
1answer
47 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
24 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
78 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 ...
0
votes
0answers
19 views
Emails being sent through the Feed are not displaying the new Email Body in the Feed
When a User sends an email through the Feed on a Case, the original email body is displayed in the feed, however the new email contents sent by the User does not display.
In the Screen shot below ...
3
votes
1answer
71 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
0answers
17 views
Trigger when record has updated after chatter post through feeditem class to GROUP ID OR MENTIONS
A MAIN GOAL : TO ALARM ON EACH USERS IN A GROUP FOR RECORD UPDATE (NO PLATFORM EVENTS) API 44 or higher
Hello i want to post a article to chatter group members, but i tried to put group id to the ...
0
votes
1answer
34 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/
{
"...
0
votes
0answers
47 views
Creating public ContentVersion via REST API on behalf of someone else fails
I am creating simple interface for posting new Case feed posts (FeedItem objects). These posts are created by admin on behalf of other users (altering the CreatedById field). I'd like to support also ...
1
vote
0answers
126 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 ...
1
vote
0answers
89 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
122 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
163 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
60 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 ...
0
votes
0answers
16 views
Prefill data into FeedItem body
I have a problem, and i dont know how to make it. I need to put data into FeedItem on Case which is sent as Type TextPost. It needs to show first name and last name of the account person which is ...
0
votes
1answer
335 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
167 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
1answer
217 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
77 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
35 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
250 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
251 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
289 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
334 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
237 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
167 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 '...
0
votes
1answer
57 views
How can I execute code when an object is created through the chatter feed?
When a record is created from the chatter feed, it creates a FeedItem, but this FeedItem won't execute the trigger.
Is there a setting to allow the trigger to execute?
If not, is there another way ...
0
votes
0answers
226 views
Adding multiple inline images into a feed item
I've developed a custom comments object as a child of Case to support inline images for back and forth conversation between customers and support.
The last piece is to post these comments as feed ...
2
votes
1answer
482 views
Delete/Prevent trigger on Feed Item
The initial idea was to block all chatter feed from external batch jobs which run nightly. We had a trigger do it.
trigger PreventPost on FeedItem (before insert)
{
if(UserInfo.getProfileId() == '...
1
vote
0answers
13 views
Filter FeedItems by community in SOQL [duplicate]
Is there any way, we can filter FeedItems by Community in SOQL? Currently, it doesn't support filtering by NetworkScope
0
votes
1answer
157 views
“Insufficient Privileges” when I enter the Salesforce URL using Chatter Feed Item ID
when I append the Feed Item ID to the back of the Salesforce URL (sorry for the excessive layman terms as I'm not well versed in programming and the terminologies), the page "Insufficient Privileges" ...
2
votes
1answer
527 views
How to insert FeedItem from Apex Email Service and set the Network ID?
Setup
External Community
Chatter Group in External Community
Apex Email Service trying to insert FeedItem related to Chatter Group
Sample Code
FeedItem fi = new FeedItem(
parentId = 'chatter ...
1
vote
0answers
79 views
Custom Email Template results an 'Inline image URL' as FeedItem subject
I have the below Custom HTML Email Template, which incorporated our logo as a letterhead as follows:
<html>
<body>
<table style= "width: 100%; background-color: #09C" cellpadding= '0' ...
2
votes
2answers
1k views
Query FeedComments for specific parent Type
For FeedItems this works in SOQL:
[SELECT Id FROM FeedItem WHERE Parent.Type = :mySObjectType]
But for FeedComment it is not a valid query:
Didn't understand relationship 'Parent' in field path
...
0
votes
1answer
137 views
Set 'feed item' in similarity to 'Email-To-Case' for 'web', 'portal', others originated cases
We have Email-To-Case configured, and once a case is created (case origin = email), the incoming EmailMessage is saved within the 'Case Description' field, and also create a 'feed item':
This allows ...
0
votes
1answer
2k views
What are the mandatory fields of FeedItem Object? [closed]
I was wandering what are the mandatory fields of FeedItem Object ?
0
votes
1answer
678 views
Chatter Post Link Lightning Experience Problems
I've been working on getting updates from a custom object to generate a chatter post that has a reference to the custom object on a case. I have been able to get what I want in classic experience as I ...
0
votes
1answer
38 views
Is it possible to restrict certain users from deleting note entries in the Feed section?
Is it possible to restrict certain users from deleting note entries in the Feed section? Need to restrict some users because we are having problems all the time with this.
0
votes
1answer
49 views
What is the API name of group in feeditem object?
I have referred this document but didn't find the field.