Hi,
I'm trying to execute a cloudscript but I every parameter I pass to the funcion always returns null;
This is my code on Unity:
PlayFab.PlayFabClientAPI.ExecuteCloudScript( new
PlayFab.ClientModels.ExecuteCloudScriptRequest() { FunctionName = "helloWorld", FunctionParameter = new { a = "aaa" }
}, result => OnExecuteCloudScriptResult(result), OnPlayFabError
and this is the code on the cloud:
handlers.helloWorld = function(args)
{
var inputValue = null;
if (args && args.hasOwnProperty("a"))
inputValue = args.a;
log.debug("Param-a:", { input: inputValue }); // Prints "Param-a:"
}