You need to sign in to do that
Don't have an account?
SebastianBraun
Joining FeedItem and FeedComment SOQL
Hi,
im trying to join FeedItem and FeedCommt.
In normal SQL I would do it like this:
"Select f.Body, c.CommentBody from FeedItem f join FeedComment c on f.Id = c.FeedItemId"
Nothing seems to work, so i hope you guys can tell whats wrong with that SOQL-Query:
"SELECT CommentBody, FeedItem.Body FROM FeedComment"
Thanks in advance
Sebastian
List<FeedItem> fill = [Select Id, Body, (Select FeedItemId, CommentBody From FeedComments) FROM FeedItem Limit 5];
Thanks in advance