question

alexbraniff avatar image
alexbraniff asked

Possible to have Collection on InventoryOperation?

I think it would be beneficial to PlayFab and developers to be able to include the CollectionId on an InventoryOperation in order to save on calls made to the SDK / API. Instead of making a call per collection to add / subtract / update, each operation could be assigned a collection and all related operations on a single player's inventory could be done at once.

Having the collectionId on the same level as the Entity limits us to one call to add / subtract / update as many items as we want from a single collection and forces us to make a lot of calls if there are frequent updates to multiple different inventory collections.

Thanks.

sdksIn-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

·
Gosen Gao avatar image
Gosen Gao answered

Currently, Inventory - Execute Inventory Operations - REST API (PlayFab Economy) | Microsoft Learn only supports perform operations on one collection. If you want the feature that you mention, you can post your idea as a feature request.

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.