Hi, I am attempting to run the snippet below in my cloud script but am getting a status 500 internal server error. I'm guessing I've got some sort of problem with the syntax of the grant items to character call but I'm not certain. Is the format I have it in correct? Is there some step needed after granting a character but before granting items to them? Thanks in advance for any insight/help!
var grantCharacter = server.GrantCharacterToUser({ PlayFabId: currentPlayerId, CharacterName: "My Empire", CharacterType: "Empire" }); log.debug(grantCharacter.CharacterId); var charId = grantCharacter.CharacterId; var grantItems = server.GrantItemsToCharacter({ PlayFabId: currentPlayerId, CharacterId: charId, ItemsIds: ["Planet", "Slot"] });