Quantcast
Channel: Active questions tagged feeditem - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 160

How to find FeedItem where a ContentDocument is the RelatedRecordId

$
0
0

Given a ContentDocument, I need a way to use SOQL to find any FeedItems that the ContentDocument may be related to.

I hoped that ContentDocumentLink would work, but that just seems to give me the case and the user, but not the actual post in the feed.

I tried to do a simple query on FeedItem to see if I can just get it from RelatedRecordId

Select Id FROM FeedItem Where RelatedRecordId = '123AAA'

but then I get the error field "'RelatedRecordId' can not be filtered in a query call"

I cannot think of any other way to get to the FeedItems.


Viewing all articles
Browse latest Browse all 160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>