question

Rafael Souza avatar image
Rafael Souza asked

Calling GetProfiles returns null info

Trying to make a clan/guild system for my game here. When calling GetProfiles to get the members DisplayName it returns null info about the profiles.

Here's the response I get.

{
   "Profiles":[
      {
         "AvatarUrl":null,
         "Created":"2018-12-03T17:01:29.125Z",
         "DisplayName":null,
         "Entity":{
            "Id":"3E5C00275950F820",
            "Type":"title_player_account"
         },
         "EntityChain":"title_player_account!DB994B7058071D39/B7CD/E9E18CB77379DC7F/3E5C00275950F820/",
         "Files":null,
         "Language":null,
         "Lineage":{
            "CharacterId":null,
            "GroupId":null,
            "MasterPlayerAccountId":"E9E18CB77379DC7F",
            "NamespaceId":"DB994B7058071D39",
            "TitleId":"B7CD",
            "TitlePlayerAccountId":"3E5C00275950F820"
         },
         "Objects":null,
         "Permissions":null,
         "Statistics":null,
         "VersionNumber":773
      }
   ],
   "Request":{
      "DataAsObject":null,
      "Entities":[
         {
            "Id":"3E5C00275950F820",
            "Type":"title_player_account"
         }
      ],
      "AuthenticationContext":null
   },
   "CustomData":null
}

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

·
Citrus Yan avatar image
Citrus Yan answered

Currently the classic model and the new entity model does not share the same Displayname, which means that the Displayname set through the classic UpdateUserTitleDisplayName API is not the same as in the Entity Profile. For now, you may store the Entity Displayname inside its Entity Object through the GetObjects API so that you can retrieve them using GetProfiles.

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.