question

avimon avatar image
avimon asked

Not able to SharedGroupDataRecord

I have created GetSharedGroupData resquest and which works fine but I am not able to read SharedGroupDataRecord from KeyValuePair. Code is as follows :

 PlayFabClientAPI.GetSharedGroupData(new GetSharedGroupDataRequest()
        {
            SharedGroupId = PlayFabAuthHub.PlayFabId + "_FriendRequests",
            GetMembers = true
        }, SharedGroupData, OnPlayFabError
            );
private void SharedGroupData(GetSharedGroupDataResult result) { foreach (KeyValuePair<string,SharedGroupDataRecord> kv in result.Data) { Debug.Log(kv.Key +" "+ kv.Value); } }

It returns key with kv.Key but not its value which is stored in Shared Group Data in PlayFab account.

For testing purpose I have created a key/value pair with a/b in SharedGroupData.

I am attaching a screenshot of output here which I am getting in Unity Console:

Shared Group Data
capture.png (3.7 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

What Title ID is this, and what PlayFab ID are you using for testing (the one used to compose the Shared Group ID)?

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.