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 /
  • Feature Requests /
avatar image

Vivek Deshpande suggested an idea · Oct 12, 2017 at 10:40 AM · CloudScriptLeaderboards and Statistics

Pass EventData as a parameter in a CloudScript triggered via Prize Tables

I'm trying to create a delayed rewards window that shows up when a leaderboard finishes and the user has placed inside one of the specific reward tiers. To achieve this, I'm triggering a cloudscript function as part of the prize table which stores the reward tier. I'd also like to store his final leaderboard score and the leaderboard version. Looking at the raw event data, I see that a JSON container already exists which has this information embedded (named "TriggeringEventData").

I'd like to request having a boolean that , when checked, passes this data from a prize table to a cloudscript function as a parameter.

thub.nodes.view.add-new-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 comment

· Add your reply
avatar image

Brendan commented · Oct 12, 2017 at 07:35 PM

That information is already sent to the Cloud Script you're triggering in the Prize Table. All PlayStream Action-triggered Cloud Scripts are sent the player profile info and the event details in the context. In the case of a Prize Table Action, the event is player_ranked_on_leaderboard_version.

Have a look at this guide for more details on how to use the context in Cloud Script: https://api.playfab.com/docs/tutorials/landing-automation/using-cloud-script-actions-with-playstream

thub.nodes.view.add-new-comment

People who like this

0 Show 1
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 Vivek Deshpande · Oct 13, 2017 at 08:14 AM 0
Share

Oh, I completely forgot about the context param. Thanks!

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Your Opinion Counts

    We would love to know what you need. Submit your ideas and upvote others to help us prioritize.

    Sign in to post a new idea

    Follow

    Follow This Idea

    No one has followed this yet.

    Related Ideas

    Get whole http.result object through Cloud Script server API using http.request

    Modifying contact email with cloudscript

    Custom Data In Leaderboard

    Set Title News from CloudScript

    Support HTTP Status Codes

    GetLeaderboardAroundSharedGroup or GetLeaderboardAroundGroup

    Include logs when CloudScriptExecutionTimeLimitExceeded error occurs

    Simplified batched purchases or purchase API for CloudScript

    Add "Avg" as a leaderboard aggregation method and use existing leaderboard vals

    Integration of C# to Javascript libraries for CloudScript

    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