question

SL Tech avatar image
SL Tech asked

GetCatalogItems returning incorrect catalog

Hi

The cloudscript is setup to fetch items from a specific catalog:

let catalog = server.GetCatalogItems( { Version: "Cards" } ).Catalog;

When these items are logged on the server side, all the returned items show

\"CatalogVersion\":\"Purchasables\"

This is happening only on one title, but working just fine on another one.

How could that be possible? Any pointers are much appreciated.

Thanks in advance!

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

·
SL Tech avatar image
SL Tech answered

Found the issue based on https://community.playfab.com/questions/237/205818818-server-GrantItemsToUser.html

The Primary Catalog somehow got switched on the title where things were broken. Fixing it got everything working.

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.

brendan avatar image brendan commented ·

Yes, if the CatalogVersion parameter isn't set, the Primary catalog will be the one returned.

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.