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 Fuzail Sarang · Jul 09, 2019 at 02:24 PM · CloudScriptPlayer DataLeaderboards and Statisticstest

Email Templates variables

Hi we are looking to provide a points(statistics) summary for a user. To do this we would need to get the ranking in the leaderboard for a user as well as the value of his leaderboard statistics.

I would just like to know what would be the best way to go about this? Should we create a cloudscript that generates an event with the relevant data? I read somewhere that event data is available in email templates.

Comment
developer-4

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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Jul 10, 2019 at 08:10 AM

Email template does support showing player profiles, however as you can see in PlayerProfileModel, only those properties with string type can be displayed properly in the Email Template. For example, $Profile.DisplayName$.

You are free to add a thread on our Feature Requests forum about it if there is no existing one. More votes from other users can help with the priority.

Comment

People who like this

0 Show 9 · 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 Fuzail Sarang · Jul 12, 2019 at 08:55 AM 0
Share

I am specifically referring to point 3 in the below statement

https://community.playfab.com/comments/21023/view.html

Would the above comment mean that I can pull information into the email template using a custom event?

avatar image SethDu ♦ Fuzail Sarang · Jul 15, 2019 at 08:27 AM 0
Share

Yes, For example, I set up a rule that will be triggered by player_statistic_changed event and it will send an email from template:

So in the template, you can write $Event.StatisticValue$ and it will show as 603 in player's email.

snipaste-2019-07-15-16-21-14.png (41.8 kB)
avatar image Fuzail Sarang SethDu ♦ · Jul 16, 2019 at 08:28 AM 0
Share

Thanks, just what i needed

Show more comments

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

    What's the best way to get a custom segment of players based on the user's current stats? 1 Answer

    Leaderboard amount limitations & dynamic creation? 1 Answer

    Playfab cloudcripts Wondering 2 Answers

    Error : CloudScriptAPIRequestCountExceeded 2 Answers

    Leaderboard related Questions 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