question

Scott Brooks avatar image
Scott Brooks asked

Are character ids unique/how to find PlayFabId from character id

There appears to be different answers around if character ids are unique or not.

This says that character ids are not unique and need to be evaluated with a playfab id

https://api.playfab.com/documentation/server/method/GetAllUsersCharacters

This thread https://community.playfab.com/answers/18242/view.html seems to say that character ids are unique. It also seems like the Entity API would require unique character ids as well.

Ultimately what I would like to do is to be able to find the associated playfab player id that belongs to a character id.

The suggestion in this thread seems like a bit of a hack. Anyway to do it with the Entity API?

https://community.playfab.com/questions/13204/how-can-i-find-player-with-character-id.html

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Seth Du avatar image
Seth Du answered

Yes, you are able to call GetProfile or GetProfiles to retrieve the lineage information from the character. Here is an example:

Request:

{ 
  "Entity": 
  { 

	// your character ID
    "Id": "xxxxxxxxxxxx", 
    "Type": "character", 
    "TypeString": "character"  
  }
}
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.