question

avimon avatar image
avimon asked

Not able to add Shared group member

I am not able to add shared group member via server api. It worked in first two attempts and now it is not working at all. Guide me through it.

Shared Group Data
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

Please provide the Title ID, as well as the complete body of the call you made to add a shared group data member.

2 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.

avimon avatar image avimon commented ·

TitleId is : 98BA

Shared Group Id is : ExistingRooms

Cloudscript code :

handlers.ERASGM = function (args) {
    server.AddSharedGroupMembers({
        SharedGroupId : args.SGDType,
        PlayFabIds : [args.SPI]
    });
    server.WriteTitleEvent({
     EventName : "ERASGM"
    });
    return { ResultCode : 0, Message: 'Success' };
};

Cloudscript execution call :

PlayFabClientAPI.ExecuteCloudScript(new ExecuteCloudScriptRequest()
        {
            FunctionName = "ERASGM",
            FunctionParameter = new
            {
                SPI = PlayFabAuthHub.PlayFabId,
                SGDType = "ExistingRooms"
            }
        }, RoomInfoUpdatedInPlayFab, OnPlayFabError
            );       
0 Likes 0 ·
Andy avatar image Andy ♦♦ avimon commented ·

I can't find a shared group with that id on that title. Did you accidentally delete it somewhere along the way?

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.