• A Kennedy
  • NEWBIE
  • 0 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies

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 (http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_collaborationgroup.htm), there definitely is an IsArchived field on the CollaborationGroup object.

Can anyone tell me what's going wrong here?