I use GetPlayerCombinedInfo to get various player data:
var profileConstraints = {};
profileConstraints.ShowTotalValueToDateInUsd = true;
var combinedInfo = server.GetPlayerCombinedInfo({PlayFabId: currentPlayerId, InfoRequestParameters: {
GetUserInventory: true,
GetUserVirtualCurrency: true,
GetUserReadOnlyData: true,
UserReadOnlyDataKeys: ["xxx", "xxxx"],
GetTitleData: true, TitleDataKeys: ["x"],
GetPlayerProfile: true,
ProfileConstraints: profileConstraints,
GetPlayerStatistics: true,
PlayerStatisticNames: ["x", "xx"]}});
It all works perfectly, but combinedInfo.InfoResultPayload.PlayerProfile.TotalValueToDateInUSD
is undefined, i expected at list a value of 0.
I check which properties combinedInfo.InfoResultPayload.PlayerProfile has, the result is:
PublisherId
TitleId
PlayerId
but TotalValueToDateInUSD is missing.
Can you help, please?