With GetCharacterDataRequest, what would I do if I don't know the character id? I want to be able to get a characters data by the non unique name of it, but that doesn't seem to be an option. How would I get aorund this?
With GetCharacterDataRequest, what would I do if I don't know the character id? I want to be able to get a characters data by the non unique name of it, but that doesn't seem to be an option. How would I get aorund this?
What's the context in which you wouldn't know the Character ID, specifically? The best thing to do in this case would be to work top-down, taking the intended gameplay experience and working from there to determine the best approach.
Basically I have characters stored as "Preset1" - "Preset3". This means if I wanted to get data that is save in preset1, I could just call the non unique name "Preset1" and it would give me that data.
Then what I would recommend is using https://api.playfab.com/documentation/client/method/GetAllUsersCharacters to determine the set of characters that are available, so that you know which ones to query.
2 People are following this question.