I have a list of all Chatter Groups in my org, I want to stop any archived chatter groups from displaying in this list.
So I want to check for the
IsArchived field and if
true, don't display it.
I'm trying the following query:
List<CollaborationGroup> collaborationGroups = [select Id, Name, IsArchived from CollaborationGroup where Id in :collaborationGroupIds ORDER BY NAME ASC LIMIT 200];
But I'm getting the following error:
No such column 'IsArchived' on entity 'CollaborationGroup'
If I remove
IsArchived from the query, it runs fine.
According to the SF docs, there definitely is an
IsArchived field on the
Can anyone tell me what's going wrong here?