question

Darius Vu avatar image
Darius Vu asked

Cannot get DisplayName from PlayFabProfilesAPI.GetProfile()?

Dear support team,

I want to get DisplayName of each member in the group.

I am using PlayFabProfilesAPI.GetProfile() to get DisplayName from Player ID (title) that is returned to GroupApplication. But the result is null although it has the displayname.

var request = new GetEntityProfileRequest { Entity = Profile_EntityKey };
PlayFabProfilesAPI.GetProfile(request,
	response =>
	{
		Debug.Log("response.Profile.DisplayName: " + response.Profile.DisplayName); // The result = null
	}, GetProfileError);

Could you tell me how to fix it?

Thank you so much,

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

It is not supported. DisplayName configured in Game Manager or via UpdateUserTitleDisplayName API cannot retrieved via Entity Profile related APIs. For now, please use Client API GetPlayerProfile.

This is a feature to be update, and the Display name in Entity data model is different from classic data model. Please feel free to send a thread on the feature request forum -- https://community.playfab.com/spaces/24/index.html

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.

joon avatar image joon commented ·

Are there any updates to the API or roadmap regarding this? Being able to bulk-query displaynames would be very useful. I've added it as a feature suggestion as well. https://community.playfab.com/idea/65098/get-multiple-displaynames-through-getprofiles-or-s.html

1 Like 1 ·

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.