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 /
  • General Discussion /
avatar image
Question by developerjazzhaq · May 14, 2017 at 06:17 AM · Player DataLeaderboards and StatisticsPush Notifications

Send parameters to cloud Script on event

I want make a function in cloud script that will be called from Playfab>Leaderboards>PrizeTable for top 10 players sending rank as a parameter to the cloud script. I will then grant Currency and Push Notification to the players from cloud script. Is It possible.

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 Brendan · May 14, 2017 at 06:25 AM

That's specifically what the Prize Table functionality is designed to do - perform actions on players based upon their position in the leaderboard. You can make calls to get the leaderboard, to grant VC or items, and to send push notifications in Cloud Script, but doing so for more than a few players really isn't going to be possible, as Cloud Script is really only designed for lightweight server logic - a few seconds of CPU time, at most (and calls to the server API are web API calls, so they do take a small amount time due to the communication between distinct servers).

Comment
developerjazzhaq

People who like this

1 Show 2 · 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 developerjazzhaq · May 14, 2017 at 06:32 AM 0
Share

What i want to do is call one function "GivePrize" for rank 1 to 10 and then inside GivePrize i will capture the rank and give Prize according to the rank. So is there any way to identify for which rank Give Prize was called?

Also i cannot make use of more than one action triggers due to my limit.

avatar image Brendan ♦♦ developerjazzhaq · May 14, 2017 at 08:04 AM 0
Share

That's specifically what the Prize Table functionality does - it enables sending prizes and messages about those prizes to players. That's not something you'll be able to enable via Cloud Script , assuming a non-trivial number of players.

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

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Make a Survey,make a survey 1 Answer

    Can send the push notification only while the game is open 1 Answer

    How is the proper way to how additional user data in leaderboard? 1 Answer

    Server-authoritative design in PlayFab ? 1 Answer

    How long after calling cloudscript to update statistic does it take to reflect in players account, and leaderboard? 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