question

Dylan Hunt avatar image
Dylan Hunt asked

Doc inconsistency for Server.GetPlayerCombinedInfo result

https://api.playfab.com/documentation/Server/method/GetPlayerCombinedInfo

Docs say DisplayName is at:

InfoResultPayload.InfoResultPayload.PlayerProfile.DisplayName

However, I'm wondering why I'm returning null when the combined info returns fine. I logged it and it shows it's at:

InfoResultPayload.InfoResultPayload.TitleInfo

Attached a "semi pretty" structural result

documentation
formattedjson.png (17.6 KiB)
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

Actually, the Title Display Name is shown in the docs as being in both (AccountInfo.TitleInfo and PlayerProfile). But for the data to show up in the PlayerProfile, you do have to have your profile settings set to allow that (Settings->Client Profile Options).

3 comments
10 |1200

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

Dylan Hunt avatar image Dylan Hunt commented ·

Oh wow, have these options always been here?

0 Likes 0 ·
Dylan Hunt avatar image Dylan Hunt commented ·

https://i.imgur.com/5AJmccf.png

Oh, hmm.... apparently I already had display name on (and only display name, at that time of the post above)

0 Likes 0 ·
brendan avatar image brendan Dylan Hunt commented ·

We introduced the player profile constraints when we added GetPlayerProfile (https://api.playfab.com/docs/tutorials/landing-players/getting-player-profiles). The constraints determine what can be returned from the profile, for the client. Bear in mind that anything you turn on, players will be able to query about each other.

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.