In cloudscript I am trying to fill in an items custom data with the custom data from the catalog item.
When I run the server.UpdateUserInventoryItemCustomData from cloud script it adds the PlayFabId, ItemInstanceId and Data field as individual entries in the custom data, and does not work if those fields are not there? Is this intended behavior? It seems wonky.
Result: https://i.imgur.com/8eYS5vH.png
Cloudscript:
server.UpdateUserInventoryItemCustomData({ PlayFabId: currentPlayerId, ItemInstanceId: instanceId, Data: item.CustomData });