• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • 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

Getting public groups only

Scheduled Pinned Locked Moved Solved APIs
unitywindowsgroup
4 Posts 2 Posters 453 Views
    • 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

  • Login

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