FeedItem represents an entry in the feed, such as changes in a record feed, including text posts, link posts, and content posts.

learn more… | top users | synonyms

1
vote
0answers
9 views

Show Chatter feed for Knowledge article in Napili template community

I am trying to display feed for an article in my Napili template using standard record feed lightning component, but for knowledge articles it neevr loads. It works properly for custom objects Image ...
0
votes
1answer
11 views

Is it possible to change the FeedItem actor from active user to name of flow?

Currently we have tracking turned on for our cases. The Case Feed is tracking account, status, contact, and other such fields. However, the actor of every feed item is always set to the current ...
0
votes
1answer
26 views

Upload file linked with Opportunity record

I want to create VF custom page to upload files, which are bigger than 25mb, so i can't use Attachments. I have found out, that when i upload file from "Files" tab, i can query it by SELECT id, ...
2
votes
0answers
37 views

Can not insert FeedItem through apexrest

When trying to create a FeedItem through the ApexRest I'm always getting the following error: [{"errorCode":"APEX_ERROR","message":"System.DmlException: Insert failed. First exception on row 0; ...
2
votes
1answer
39 views

Post chatter feed element from other chatter account [duplicate]

How can i use a different chatter account to post feed items. This is because I am posting feed elements from apex. But the user doesnt get notified when tagged himself(@mention) in feed. So i ...
3
votes
1answer
20 views

How to change what fields are displayed in the Feed View?

In the Feed View of Account, we see this for all the cases related to the Account: How could we remove the fields 'Status' or e.g. 'Priority' from this mini view? I can't seem to find where to add ...
0
votes
1answer
26 views

Is there a way to customize how a chatter post is laid out?

I'm displaying a chatter feed on a visualforce page, and I can't find out if there is a way to remove or hide the profile picture and name of the user who posts, and to remove or hide the "Comment, ...
3
votes
1answer
57 views

Upload a file to a chatter feed in Apex: API 36

I'm trying to upload a File to a Chatter feed using Apex API 36. It is straightforward in API 35, and Salesforce provides the code below. However it doesn't compile in API 36. Does anyone have a ...
1
vote
2answers
43 views

Unit Test on FeedItem Trigger that has callout throwing You have uncommitted work pending. Please commit or rollback before calling out

I am creating a unit test around a feed item trigger that is doing a callout. The code works as excepted, but when I do that unit test I am getting the exception You have uncommitted work pending. ...
2
votes
1answer
42 views

Parent id field of feed item object

The FeedItem object is used in my Org. There is a field called parent ID. But i am not being able to understand to which object is FeedItem related to? is there a way to see which object is parent id ...
10
votes
1answer
81 views

SOQL: (WHERE x IN(a,b)) does return 2 records, but (WHERE x = a OR x = b) returns only 1 record… Why?

I'm trying to retrieve some ContentVersion records, but I'm having a lot of issues with it. After some research it seems as if the records are divided into two 'sets' as it were, and Salesforce in ...
0
votes
0answers
11 views

Creating User Feeds with API using PHP

I need to create user feeds on Salesforce using API from a PHP web application I develop. The requirement is to post the form data as the feed on submit. I have tried Salesforce SOAP API and can ...
0
votes
2answers
82 views

How to attach file to Feed Item in SOAP API v36

Can someone give me an example of how to attach a file to Lead using FeedItem in SOAP for version 36 since ContentData and ContentFileName fields are obsolete? My previous code was FeedItem post = ...
0
votes
1answer
64 views

How to get the body of Chatter Files in Apex?

When I'm trying to do e.g. in either code or the Developer Console SELECT Id, Type, Body, Title, ContentData From FeedItem where Type = 'ContentPost' LIMIT 1 I get No such column 'ContentData' ...
0
votes
2answers
77 views

Rest API FeedItem ContentData download

I'm working on retrieving the Feeds' content data using REST API. The url to be submitted is of the format: instance_url/services/data/v36.0/sobjects/object_name/id/ContentData All the feed ...
1
vote
1answer
51 views

Getting Invalid Field Name error on FeedItem

I have written the below trigger to block uploading of .exe files in chatter feed. Below is the trigger code - trigger BlockHarmfulFileAsChatterFeed on FeedItem (before insert) { for(FeedItem f : ...
0
votes
1answer
39 views

Insert ContentDocumentLinks for Chatter Content Posts

We have a set of ContentVersion records that have been inserted by users via a FeedItem post. Unfortunately because Chatter groups has many functional limitations we have to migrate these files to ...
1
vote
1answer
47 views

Email is not received when FeedItem body is modified through trigger

I have a trigger which modifies the content of chatter feed on a particular object (Position__c). Code: trigger FeedItemBodyModify on FeedItem (before insert,before update) { for(FeedItem fi ...
1
vote
1answer
86 views

Post a feed in Community Chatter Group

I have a private chatter group in community. I want to post something in this group by System Admin. When system admin create a FeedItem and putting ParentId = groupId programatically then getting ...
1
vote
0answers
27 views

How to find subscribers(or Followers) from FeedItem?

I want to know how to find the subscriber of a FeedItem, so that I can mail him as new feed gets created. I tried with FeedItem, EntitySubscription and one custom object's field. But failing to get ...
0
votes
1answer
74 views

Using postFeedItemWithMentions I can't set visibility “AllUsers”

I'm trying to create a chatter post via Apex. The problem I'm facing with is the visibility in the partner community. The user mentioned remains highlighted in Gray. In the FeedItem record what I can ...
0
votes
0answers
53 views

How to programmatically set File/Feed Item Permissions

There are a couple of questions already similar, but not quite the same - we are in quite a bind, every fork in the feed item/content road has been a total dead end, after almost 9 years on this ...
0
votes
0answers
20 views

Update Custom Fields on ContentVersion

On a series of ContentVersion records inserted via Chatter FeedItem, I'm trying to assign custom fields on these records after they've been inserted, but as they were created via a FeedItem post I ...
1
vote
1answer
99 views

Querying ContentVersion or ContentDocument for User Other Than Owner - Only One Record At a Time?

My issue is that I can't seem to query more than one record at a time from the ContentVersion or ContentDocument if I'm not the owner of the file. Here is what works for me: ...
1
vote
2answers
93 views

Help with Feeditem Trigger

All: I want my trigger to copy Attachments (File) uploaded to Account`s chatter feed and re-post it to a group. For some reason, code below is failing. Can someone pls suggest why this is happening? ...
3
votes
1answer
57 views

ContentWorkspace Permission And Migrating

I am working on an instance that has a large set of ContentVersion data uploaded by Customer Portal Users and saved across many ContentWorkspace(s) or Libraries. We have encountered some issues ...
1
vote
1answer
78 views

Can't add ContentPost type FeedItems on cases from customer community user

I'm trying to let Customer Community users upload and retrieve files on cases. I've done this using Chatter Files before, on a custom object that had it's sharing set to private (because it was a in a ...
0
votes
1answer
52 views

FeedItem should show to Chatter FreeUser

When case is created from partner Community User(Partner Communtity Profile), I'm creating record in FeedItem, FeedItem fi = new FeedItem(); fi.Body = 'Feed Body'; fi.ParentId = ...
0
votes
1answer
49 views

upserting a feeditem

I'm actually working on a backup and restore procedure of my salesforce data, and my client wants the ability to restore their chatter feed also. I saw in the documentation ...
1
vote
1answer
26 views

Related to feed Items

Here I am uploading data From Audit trail to Feed Items through a trigger ,but during inserting records in Feed Items Trigger Throwing error like "Entity is not api accessible" this,can anyone give ...
0
votes
1answer
17 views

Access CaseFeed as a Chatter free License User

I insert comment on CaseFeed logged in as a System admin Profile. I have Chatter Free License User. I want those comments can alse visible to Chatter free license user and can able to Comment on ...
0
votes
2answers
80 views

Enable Chatter Feed Tracking programatically for long / rich field

Is there any way to Chatter Feed Tracking programatically for a field which is long / rich datatype in salesforce.com? I tried to do this using salesforce standard way but was not able to get the ...
2
votes
1answer
143 views

Unrecognized field “attachment” when POSTing a Chatter FeedItem with a file

I'm attempting to create a new Chatter FeedItem using the Salesforce REST API. I'm constructing a multi-part request with the following parameters: { "feedElementType": "FeedItem", "subjectId": ...
0
votes
1answer
140 views

Can Chatter ConnectAPI be used to search chatter post feed only

Currently i am trying get chatter feed in visualforce page. I only want the feed which has a query string. But i want all the recent comments for the post. I couldn't find a visualforce tag to get the ...
0
votes
0answers
84 views

Upload File (image/audio/video) to FeedItem in chunks

​public static String upload(String folderId, String documentId, String fileName, String base64BlobValue) { if(documentId == '' || documentId == null) { Document document = new ...
0
votes
1answer
22 views

Chatter Event without a Related To Onto the User's page

I have a trigger that collects Events without a related to and pushes them to a Future Method class - because events added via outlook don't have a WhatId! - and then publishes a Chatter post on the ...
0
votes
0answers
20 views

How to migrate Chatter posts assigned to each existing case

Can anyone help me out with how to migrate Chatter posts assigned to each existing case from one org to other. Thanks In advance
2
votes
1answer
142 views

Test coverage for FeedItem

I'm trying to get my test coverage up and I'm having a few problems to get it done. I have a trigger that will call a class every time a user inserts or updates an event. If that event contains an ...
2
votes
0answers
45 views

FeedComment insertion does not generate Chatter email

I was able to create an automated FeedItem trigger that fires and automatically replies (from a dummy user) to a user when he/she makes posting. I did not get the typical "commented on your post" ...
0
votes
1answer
19 views

Chatter Threads not shown in debug logs

I've been developing an OOO auto-reply for my org so that when, for example, user A @mentions user B (who is on vacation) - user A will get auto chatter response from user B that he/she is on ...
0
votes
1answer
96 views

Inserting Feed-Item with Attachment for Community

I am trying to inserting Feed-Item with Attachment in Production and in Sandbox separately for community users. Community is active and my customer profile is added to the community. I know that I ...
1
vote
1answer
28 views

upload documents to case feed in batch

I have several documents that need to be upload as case feed items to their cases. Since I have 1000 such documents I would like to know if there is a way I can automate this task
0
votes
1answer
224 views

Trigger on Attachment to insert FeedItem

I have been trying to get a trigger to fire when a new attachment is inserted (After insert), the ParentId is Event for that attachment, and the Event is related to an Account. So, if anyone inserts ...
1
vote
2answers
288 views

One Class to control all Trigger. - Dispatcher

I'm having some problems when trying to make a number of classes and triggers to run on a dispatcher class. The components for this architecture are the following: One -TriggerDispatcher class. ...
0
votes
0answers
190 views

Testing FeedItem with NetworkScope

I'm testing the insert of a FeedItem (with a ContentPost), however, I keep getting an exception: List<FeedItem> feedItems = new List<FeedItem>(); for (SObject so : ...
1
vote
2answers
341 views

EXCEPTION: System.SObjectException: Field is not writeable: FeedItem.Visibility

I´m trying to update the visibility for feed items: for (FeedItem FI: [SELECT id FROM FeedItem where Type = 'LinkPost' order by createddate desc]){ FI.visibility='InternalUsers'; } I get ...
1
vote
1answer
108 views

@mentions for given feeditem id through soql

Is it possible to get details about @mentioned in feeditem body through soql. REST API and Connect API are available, but not able to locate any standard object which has this information. Please ...
0
votes
0answers
250 views

Copying feed items from opportunity to related account

I am trying to copy feeds from an opportunity to it's related account and I it doesn't seems to be so easy. :) feed is a complex object as can be seen here so basically I want to copy also the ...
0
votes
2answers
116 views

Post Chatter on Field Change on Update

Can someone help me nail the syntax on chattering on a field update? trigger ChatterCoverageUpdate on Account (before update) { List<FeedItem> feedItems = new List<FeedItem>(); for ( ...
2
votes
2answers
412 views

FeedItem to record with multiple @mention

I am trying to achieve feed item to record with multiple @ mentions when status of record goes to Complete.Here is the sample code which creates a feed item to record with single @ mention. ...