question

yogev avatar image
yogev asked

Azure function - Can't get info with title id

Hey, I am trying to get the inventory of the player and then grant it an item when I use the title player account id it won't work, and grant and get inventory will return null why? when I use the master id it does work

CloudScript
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

·
Neils Shi avatar image
Neils Shi answered

Could you tell us more details about your scenario? What APIs do you use to retrieve the player's inventory and grant items to players? If you are using Legacy Economy, you may use API GetUserInventory to retrieve user’s inventory and use API GrantItemsToUser to add items to user's inventory. Both APIs require you to provide a PlayFabId (master player account id) to specify which player's inventory is retrieved or grant items to which player.

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.