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 Raf · Apr 24, 2020 at 08:38 AM · CloudScriptapissdks

How to create a custom Group system using CloudScript?

Hi there,

I'm trying to create a custom Guild/Clan system where new players could find and auto-join already created guilds. I see that the Group search functionality is not yet supported so I'm trying to work on a possible solution using the current Groups API via CloudScript.

The idea is to save some of the owner's clan data as statistics so that the owner could be found in the leaderboards and therefore I could fetch the clan’s EntityKey along with some info about the clan from the owner's UserData. Does that sound like a good workaround?

Another question: how would a Group API call work using CloudScript? Did I miss something or is the Group API not exposed to CloudScript?

Thanks!

Raf

Comment

People who like this

0 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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Citrus Yan · Apr 27, 2020 at 08:44 AM

>>Does that sound like a good workaround?

I don’t think it’s an efficient way since you’ll need additional APIs (out of the Groups API scope) to manage your Group system, for instance, delays in other systems may also affect your system’s performance. And, there will be too many API calls needed to get all info, which may exceed the limit of CloudScript. Therefore, for now, I would still suggest that you manage a queryable list outside of PlayFab to make it more realiable.

>> how would a Group API call work using CloudScript?

You can use entity.xxx to access Group APIs in CloudScript, for instance:

entity. CreateGroup (xxx)

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

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    Using Custom Tags with Email verification rule 1 Answer

    Unable to build the necessary environment for playfab cloudscript using azure functions. 1 Answer

    How to check if User is part of a group at the same time when using ListMembership function 2 Answers

    UserData object different between client and server? 1 Answer

    executecloudscript unity Function Parameter 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