+ Start a Discussion
ethanoneethanone 

Removing unwanted Feed items

I have a custom object Requests__c and each time the request status changes, i have a process builder that creates a custom related object called Request_Activity__c. The purpose of which is to capture the activity on the request (and generate reports, metrics, etc).

Whenever the Request Activity is created, a Feed item is created on the Request. I do not want a feed item for Request Activities, however I cannot turn off related feed tracking because i need it for notes and other related items.

To solve this, I created a Flow, that deletes the Request Activity Feed Item record, by selecting the Feed Item by the parent Id (Request Activity). Unfortunately it only runs for me. I cannot get it to run for other users. I get the error "FeedItem requires a filter by Id." How can I resolve this?
SwethaSwetha (Salesforce Developers) 
HI Ethanone,
Please see below articles that explain approaches to fix the error for all the profiles

https://salesforce.stackexchange.com/questions/20877/feeditem-requires-a-filter-by-id-exception-despite-filtering-by-id
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000917CIAQ
https://success.salesforce.com/ideaView?id=08730000000b1HpAAI
 
Hope this helps you. Please mark this answer as best so that others facing the same issue will find this information useful. Thank you
ethanoneethanone
None of those worked for me. Two of them suggest using the "__Feed" Object, so for example Request__Feed, but when I do so I get no results. I only get results when querying FeedItem. The "__Feed" Object is a view from FeedItem, but it only shows items directly related to the Request Object and what I'm looking to remove is a related object feed entry (a CreateRecordEvent type).  What I would need is a Request_Activity__Feed object, but one does not exist.