question

tarrcake avatar image
tarrcake asked

How to specify "Rating" for Select in UGC SearchItemsRequest

I am using PlayFab UGC in Unity. I want to get the Rating.TotalCount using PlayFabEconomyAPI.SearchItems. EconomyModels.SearchItemsRequest with Select = "rating" but I get the error /Catalog/SearchItems: Unsupported property 'rating' in select.

What is the correct keyword to set in Select = to get the rating?

apisunity3dIn-Game Economy
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

Since Rating are returned with SearchItems API result by default, you don't have to use select. Also, as you can see in here https://learn.microsoft.com/en-us/gaming/playfab/features/economy-v2/catalog/search#select, "rating" is not the keyword used by the Select property.

1 comment
10 |1200

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

tarrcake avatar image tarrcake commented ·

Thank you very much. I was able to get the Rating information included in the default results of SearchItems and the value of Rating.TotalCount.

0 Likes 0 ·

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.