So I'm very new to cloudscript and javascript, so there are probably issues with this code, but I can't get it to return a value. I've tweaked every single line.
The scripting API for CreateSharedGroup says that it has a string return value, but I can't get a this function to return anything but null or a null reference exception.
I really just need a straightforward example of server.CreateSharedGroup, but I can't find one.
public void CreateMatchSharedGroup() { PlayFabClientAPI.ExecuteCloudScript(new ExecuteCloudScriptRequest() { FunctionName = "CreateSGD", FunctionParameter = false }, OnGroupCreationSuccess, CreateSGDError); } // Create SGD for new match handlers.CreateSGD = function (args){ var createdGame = server.CreateSharedGroup(); return createdGame; }; public void OnGroupCreationSuccess(ExecuteCloudScriptResult result) { var data = JSON.Parse(result.FunctionResult.ToString()); print(data); }