question

cbl14420 avatar image
cbl14420 asked

If the leaderboard is reset, is it possible to retrieve the TOP 10 rankings and similar data from the reset?,Is it not possible to retrieve the TOP 10 rankings and similar data from the leaderboard before it was reset?

Can users view past leaderboard rankings after resetting the leaderboard?

Leaderboards and Statistics
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Neils Shi avatar image
Neils Shi answered

If you mean you want users to view past leaderboard rankings after resetting, then you can let them can call API GetLeaderboard and set the request parameter “UseSpecificVersion” to true so that they can specify the “Version” of the leaderboard to retrieve. However, please note that you can only retrieve the current or one recent previous version of the leaderboard via this method. As Accessing Archived Tournament results - PlayFab | Microsoft Learn mentions that “All titles allow you to access the most recently archived version of a leaderboard, and this gives you the current and most previous versions. For example, if your current leaderboard version is 3, you may access only version 3 and archived version 2”. If you want to retrieve an older version (like version 1 or version 0), then you will receive the error "LeaderboardVersionNotAvailable". In addition, you can retrieve the top 10 players via setting the parameter “StartPosition”. For more info, you can refer to my testing request body :

 {
   "StatisticName": "Test",
   "StartPosition": 0,
   "MaxResultsCount": 10,
   "UseSpecificVersion": true,
   "Version": 2
 }
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.