I was touching some code relating to inventory items, and I noticed that every time we add inventory to characters, we have to do so with two requests. Every item in inventory needs custom data.
Any chance we could pack the custom data into the grant message? Envisioning the payload looking more like this:
{ "PlayFabId": "20394883", "Annotation": "Entered Level 2", "ItemIds": [ "shield_level_3", "shield_level_4" ], "ItemCustomDatas": [ {"key":"value"},
{"key2":"value2"}
] }Each element in ItemCustomDatas corresponds to the item at the same index in ItemIds. If ItemCustomDatas is not present or is null, no custom datas. If individual elements of ItemCustomDatas are null, the corresponding item has no customdata. We'd use this for GrantItemsToCharacter specifically but it would make sense for it to apply to all GrantItems* calls.