We're trying to display FeedItems
for a Chatter group to our external users on a Community site.
The obvious thing is to use the built in Feed component in the Builder. But that is disappointingly non-customizable.
So we're building a Lightning component. It should be relatively simple:
@AuraEnabled
function to SELECT Id, InsertedById, InsertedBy.Name, Body, LikeCount, CommentCount, CreatedDate FROM FeedItem WHERE ParentId = <GroupId>
.
And it mostly works.
However, a community user (not me, the admin) cannot see the FeedItems
.
Eventually I found an old forum post saying we need to perform the exact same query, but on the CollaborationGroupFeed
object.
So that's cool.
But I can't find any documentation about this object. Also, for some reason the IsClosed
field doesn't exist on CollaborationGroupFeed
...?
Also it appears that queries to FeedItem
and CollaborationGroupFeed
return the exact same record. Down to the Id
. So why can't I see the IsClosed
field on CollaborationGroupFeed
?
Where can I find what fields exist on this object?