Hello, i could not make grant items part to work. Code is creating a new character for the user but not granting the item. Could you please tell me what did i write wrong:
Note: User already has a "Wand" item in his inventory with same catalog version, even before character creation.
handlers.GrantITemsToCharacter = function(args, context) {
var characterName = "Fire Mage"; var characterType = "Mage";
var result = server.GrantCharacterToUser({CharacterName: characterName, CharacterType: characterType, PlayFabId: currentPlayerId});
var charId = result.CharacterId;
server.GrantITemsToCharacter({PlayFabId: currentPlayerId, CharacterId: charId, CatalogVersion: "Items", ItemIds: ["Wand"]});
}