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 CollaborationGroup object.

Can anyone tell me what's going wrong here?


What API version are you using? The IsArchived field is only available in v28.0 and higher. I'll get this information added to the docs that you cited.

| improve this answer | |
  • The docs say 19. I'm using 27 i think, just left the office so can't be 100% sure right now. – Daft Dec 15 '14 at 17:50
  • I work at Salesforce and have submitted a doc bug to have it corrected. In addition, the IsAutoArchiveDisabled field is available in v29.0 and higher. – alouie Dec 15 '14 at 17:54
  • Ah I see. Cheers for the assistance. – Daft Dec 15 '14 at 17:55
  • @alouie I noticed in answering the same question on StackOverflow that the Winter '14 release notes include this change, which is API v29.0. – Daniel Ballinger Dec 16 '14 at 9:42
  • Thanks, Daniel. I was able to use v28.0 to query for IsArchived in my org -- I think the feature was being piloted in Summer '13, which is why it's available in the release prior to the GA release of Winter '14. – alouie Dec 16 '14 at 18:40

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.