Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums
  1. Home
  2. APIs
  3. Getting public groups only

Getting public groups only

Scheduled Pinned Locked Moved Solved APIs
unitywindowsgroup
4 Posts 2 Posters 1.8k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chris Brown
    wrote on last edited by Chris Brown
    #1

    We are currently setting up a system that allows a user to browse groups. However, we only want to list public groups, so there isn't a need to retrieve private groups to display.

    We are using the ListGroupsPage call and trying to pass in searchCriteria as the following

    {
      "context": {
        "pagination": {
          "rowsPerPage": 50,
          "pageNumber": 1
        },
        "searchCriteria": {
          "groupType": "groupType",
          "isOpenGroup": true
        },
        "sortCriteria": {
          "createdAt": 1,
          "updatedAt": -1
        }
      }
    }
    

    However, this throws the error

    {
      "status_message": "Processing exception (message): Search field name isOpenGroup is invalid or cannot be accessed. Use data.property to access custom fields.",
      "reason_code": 40349,
      "status": 202
    }
    

    Are we just missing a way to get the public groups only? Thanks!

    1 Reply Last reply
    0
    • Paul WinterhalderP Offline
      Paul WinterhalderP Offline
      Paul Winterhalder
      brainCloudAdmin
      wrote on last edited by
      #4

      D'oh - bit late on the update, but 4.1 has been released, and you can now search on isOpenGroup (as well as the new groupSummaryData).

      4.1 Release notes here - https://getbraincloud.com/apidocs/release-4-1/

      Cheers!

      Paul.

      1 Reply Last reply
      0
      • Paul WinterhalderP Offline
        Paul WinterhalderP Offline
        Paul Winterhalder
        brainCloudAdmin
        wrote on last edited by
        #2

        Hi Chris,

        I have bad news and good news.

        The bad news is that in brainCloud 4.0, the "isOpenGroup" isn't whitelisted for searching purposes (which is why you are getting that error).

        The good news is that it is in brainCloud 4.1 - which is due to be released in about a week - so hold tight, it's coming soon!

        Paul.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          Chris Brown
          wrote on last edited by
          #3

          Thanks @Paul-Winterhalder ,

          We'll program a work around for now until brainCloud 4.1 is released.

          1 Reply Last reply
          0
          • Paul WinterhalderP Offline
            Paul WinterhalderP Offline
            Paul Winterhalder
            brainCloudAdmin
            wrote on last edited by
            #4

            D'oh - bit late on the update, but 4.1 has been released, and you can now search on isOpenGroup (as well as the new groupSummaryData).

            4.1 Release notes here - https://getbraincloud.com/apidocs/release-4-1/

            Cheers!

            Paul.

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Solved
            • Unsolved
            • Users