Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Muhammad Roshaan Tariq · Mar 03, 2020 at 09:38 AM · CloudScriptapissdks

How to get List of Clans/Groups available to Join?

Hi,

I am implementing the clan system in my game and I want the user to be able to see all the clans/groups of my game which are available to join.

The complication is I cannot find any API or cloud function to get the list and I also found some Playfab forum posts in which it is stated that "Playfab doesn't provide this feature yet" and I want to confirm the progress on it.

Thanks!

Comment
Roshaan

People who like this

1 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Sarah Zhang · Mar 04, 2020 at 07:13 AM

PlayFab has not provided this feature yet. However, CreateGroup is an Entity API, when it be called on CloudScript without assigning an account entity, title entity will be assigned and title will be the default Administrator of the generated Group. Then Entity API ListMembership can list all groups and roles for an entity. Hence, if all your groups are created by calling CreateGroup with title entity on CloudScript and you keep the title as the administrator of all groups, you can list these groups via ListMembership. You can try to execute the following CloudScript functions via client API ExecuteEntityCloudScript. The above content can be a possible workaround in certain situations. Besides, for any request of new features, you can navigate to Feature Requests, search for the corresponding posts to vote them or add a new feature request about listing all groups available to join. You can also track the progress of new features through the posts of feature requests.

handlers.CreateTitleGroup = function (args, context) {
    var createTitleGroup = entity.CreateGroup
        ({
            // assign the groupname via args here
            GroupName: args.groupname
        });
    return { createTitleGroup: createTitleGroup }
}

handlers.ListTitleMembership = function (args, context) {
    var listTitleMembership = entity.ListMembership
        ({
            Entity: {
                Id: "[YourTitleId]",
                Type: "title",
                TypeString: "title"
            }
        });
    return { listTitleMembership: listTitleMembership }
}

Comment
mobilEKG

People who like this

1 Show 4 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Muhammad Roshaan Tariq · Mar 04, 2020 at 02:33 PM 0
Share

Thanks @Sarah Zhang but now I am facing another problem. Please check it out

avatar image Sarah Zhang Muhammad Roshaan Tariq · Mar 05, 2020 at 01:47 AM 0
Share

We will check it out.

avatar image emreedemir Sarah Zhang · May 17, 2021 at 01:08 PM 0
Share

What will happen if I call the groups that this entity is all connected to. Suppose this entity member has 100000 groups.Does playfab give a error ?.When calling ListMemberShips methods for this entity ?

avatar image emreedemir · May 10, 2021 at 02:02 PM 0
Share

What will happen if I call the groups that this entity is all connected to. Suppose this entity member has 100000 groups.Does playfab give a error ?.When calling ListMemberShips methods for this entity ?

avatar image

Answer by emreedemir · May 11, 2021 at 01:41 AM

What will happen if I call the groups that this entity is all connected to. Suppose this entity member has 100000 groups.Does playfab give a error ?.When calling ListMemberShips methods for this entity ?

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    5 People are following this question.

    avatar image avatar image avatar image avatar image avatar image

    Related Questions

    executecloudscript unity Function Parameter 1 Answer

    Getting InvalidDropTable when calling EvaluateRandomResultTable 1 Answer

    Where should I write cloud script code? ,Where do I actually write cloud script code? 1 Answer

    Are Epic Games Store SDK API calls available as a REST API callable by a Cloud Script? 1 Answer

    How can I use the Playfab API while writing a Cloud Script with TypeScript? 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges