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.
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.
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?
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.