Dear PlayFab community,
I'm trying to synchronize some metadata whenever a player makes it on the Leaderboard, and one of my challenges was determining whether the new Value would result in a "winner" for a MAX-aggregate Leaderboard. (See this post.)
@Brendan suggested that maybe I could leverage the Event that gets fired whenever the Leaderboard is updated by a call that would result in a new winner. In doing a bit of digging around, I discovered the Event in question is the player_ranked_on_leaderboard_version Event.
This Event had the following payload in my testing:
{ "EventName": "player_ranked_on_leaderboard_version", "Rank": 1, "Value": 51, "Version": 0, "VersionChangeBehavior": "ResetValues", "LeaderboardSource": { "Statistic": { "StatisticName": "Score_Infinite_3_Weekly", "StatisticId": 1305850938 } }, "EventNamespace": "com.playfab", "EntityType": "player", "Source": "PlayFab", "TitleId": "44B1", "EntityId": "7FCA1F1E8157A6D5", "EventId": "d8cd8e51251a44d2b0c342d609a07a68", "SourceType": "BackEnd", "Timestamp": "2018-04-23T00:02:07.8910772Z", "History": null, "CustomTags": null, "Reserved": null }
I noticed the CustomTags field, which would be *ideal* for me to add some context to the Event. However, I don't know how I would set this when invoking UpdateStatistics(). Is this possible to populate that CustomTags for the Event in some manner?
Thanks for any help anyone can provide!