question

franciscoraposo avatar image
franciscoraposo asked

Batch Requests for "Update User Inventory Item Custom Data"

Hi!

I'm developing a game that would benefit from having a batch call to update the Custom Data in a player's inventory items.

Since this is done in Cloudscript, I am limited in the number of API calls (25), so if I need to update a high number of items, updating one item at a time will easily hit the threshold.

This has already been discussed here

https://community.playfab.com/questions/12605/multiple-inventory-item-instances-customdata-updat.html

Is there any new system in place that would allow me to have multiple updates, or have it in a way that would not count towards the API call limit? Even though storing in player data could be a solution, it creates other challenges in the game. The ideal solution would clearly be to store information in the item instance itself.

Thanks in advance!

apisPlayer Inventory
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

·
Sarah Zhang avatar image
Sarah Zhang answered

Currently, PlayFab has not provided such API that supports batch updating the custom data of multiple inventory instance items. But if you are restricted by the limits of CloudScript, using Azure Functions can be a new choice. Please click the links to check the overview of PlayFab CloudScript using Azure Functions. If you encounter other API calls’ rate limits during the stress test, you can consider queuing to update the data in batches.

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.