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
1answer
15 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
29 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
33 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
26 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
31 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
20 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
53 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
13 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
57 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
15 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
21 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
19 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
71 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
44 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
106 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
94 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
51 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
15 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
203 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
129 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
125 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
52 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
32 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
228 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
216 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
1k 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
199 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
297 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
196 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
149 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
54 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
182 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
450 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
141 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
453 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
76 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
903 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
118 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 ...
-1
votes
1answer
1k views

What are the mandatory fields of FeedItem Object? [closed]

I was wandering what are the mandatory fields of FeedItem Object ?
0
votes
1answer
608 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
37 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
48 views

What is the API name of group in feeditem object?

I have referred this document but didn't find the field.
1
vote
1answer
369 views

how can I query FeedAttachment body by SOAP API 36

Hi I'd like to download images of feed files. I know how to do it for Attachment in which I just have to run SOQL like "Select ID, BODY, NAME from ATTACHMENT where ...". by encoding and decoding the ...
0
votes
3answers
171 views

How to access the lead feed content?

I want to access the lead feed content, that behaves as a Lead History tracking element, related to the changes made of the feed. I have verified the fields that this object has, and I can't find any ...
0
votes
3answers
316 views

How to get Custom Object with related Item__Feed in SOQL

If it's possible to write SOQL query to get object i.e. 'Test__c' with his ItemFeed 'Test__Feed' ? --EdIt I want to make something like this: SELECT Body, (SELECT Name, Id from Test__c) FROM ...
0
votes
0answers
122 views

Test class with the class Feeditem only fails in migration toolkit

We are using the standard class Feeditem to upload documents from our customer portal to salesforce. We made a custom class where we use the Feeditem. We have a test class for that class and it works ...
3
votes
2answers
447 views

FeedItem Trigger - Parse Mentions?

There are many questions out the about how to add @mentions to a chatter post, but this question is the other way around: How do I read @mentions from a FeedItem in the trigger context? I need to ...
1
vote
2answers
390 views

Is it possible to create case feed filters in Napili Communities template

We'd like to hide certain fields from appearing in the community case feed. For example, when the case status changes it posts to the feed. Also, you'll see the note of when the case is created. The ...
1
vote
1answer
294 views

Feed Item of type TrackedChange replies missing in query

I'm doing some work around feeditem and noticed that when a user replies to a post where the type is TrackedChange i'm not able to find this reply on workbench SOQL Query. I find the original tracked ...