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.
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.
Please provide the Title ID, as well as the complete body of the call you made to add a shared group data member.
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 );
2 People are following this question.