question

brendan avatar image
brendan asked

How many characters is a PlayFab ID

Brendan Vanous
started a topic on Tue, 21 July 2015 at 7:39 AM

Question from a developer:

We'd like to do some validation on PlayFab IDs, to make sure they're valid. In testing, we found that while most were 16 digit hex numbers, one was 15 digits. Is this something that can happen? Is the length variable?

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

·
brendan avatar image
brendan answered

Best Answer
Brendan Vanous said on Tue, 21 July 2015 at 7:39 AM

The PlayFab ID is technically a generated string, and there's no guarantee on length or characters. It's possible that one could have been generated that was shorter, yes. And while right now, they do get generated as hex numbers, that could change in future - I would just treat them as strings, to be safe.


1 Comment
Brendan Vanous said on Tue, 21 July 2015 at 7:39 AM

The PlayFab ID is technically a generated string, and there's no guarantee on length or characters. It's possible that one could have been generated that was shorter, yes. And while right now, they do get generated as hex numbers, that could change in future - I would just treat them as strings, to be safe.

1 comment
10 |1200

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

Tomek Perlak avatar image Tomek Perlak commented ·

@Brendan, is changing of the PlayFab ID format (from its current Int64-as-a-hex) anywhere in the backlog?

0 Likes 0 ·

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.