Hey there,
I want my Cloud Script to return the instanceID of the item that got created within the call:
handlers.grantItem = function (args, context){ var request = { ItemGrants: [{ PlayFabId: currentPlayerId, ItemId: args, Data: { "Equipped": "false" } }] }; var playerGrantItemsResult = server.GrantItemsToUsers(request); return {playerGrantItemsResult }; // Return the instanceID of the item here }
Any approach?
Greets