question

Mohsen Jamali avatar image
Mohsen Jamali asked

Search Game Manager using PlayerStatictics

Hi I'm trying to search for users with specific player statistics in game manager but it's doesn't work. Can you help me find the right query. For example PlayerStatistics.StatisticValue > 100 and PlayerStatistics.Name =="Level"

Leaderboards and Statisticsgame manager
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

·
Xiao Zha avatar image
Xiao Zha answered

As you can see in the Search tips, nested properties including PlayerStatistics cannot be searched directly. If you want to get all players with a specific statistic value, you can set up a Segment (https://learn.microsoft.com/en-us/gaming/playfab/features/playerdata/player-segment-configuration) to collect all these players and call the GetPlayersInSegment API to get these players. 7023-search-tips.png


search-tips.png (5.8 KiB)
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.