Query Communities
The queryCommunities method can be useful for users who are new to your app or are exploring their community options. By providing a way to explore for communities, you can help users to discover the full range of community options available within your app.
To query communities with certain criteria, the following parameters are used:
displayNameallows you to filter communities based on the community's displayName. (deprecated)filter/membershipallows you filter communities based on the logged-in user membership status.categoryIdallows you filter communities based on community categories.sortByallows you filter communities based on the order that the communities were created or based on alphabetical order, last created, and first created.includeDeletedallows you specify if you want to include deleted communities in your query. By passingtrueorfalseto this method, you can include or exclude deleted communities from the results.
If you'd like to fetch all communities, you can pass the keyword as null. (deprecated)
Search for communities
To search for communities, users can call the relevant method and provide the desired keyword, membership options, and other parameters.
If no keyword is supplied, the list of users for the specified community will be sorted by the date they joined.
To search for communities with certain criteria, the following parameters are used:
keywordallows you to filter communities based on the community's displayName.filter/membershipallows you to filter communities based on the logged-in user membership status.categoryIdallows you to filter communities based on community categories.sortByallows you to filter communities based on the order in which the communities were created or based on alphabetical order, last created, and first created.includeDeletedallows you to specify if you want to include deleted communities in your query. By passingtrueorfalseto this method, you can include or exclude deleted communities from the results.
Last updated
Was this helpful?