I am trying to get chatter feed in single SOQL query as below:

[Select id, Casenumber, (Select id, Title From FeedItems) From Case]

But its not working.

Is it even possible? Or else should I get it in separate SOQL query?


The relationship name for feed items is Feeds, not FeedItems. The below query should work:

[SELECT Id, CaseNumber, (SELECT Id, Title From Feeds) From Case]
| improve this answer | |

You can query them like

Select id,title,body from casefeed
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.