Hi!
I need to call server.GetUserData and server.GetUserReadOnlyData within the same function in the cloud script. Is it possible to do this? If yes, can you provide me an example of how should work?
handlers.GetMyData = function (args, context) { var data = args.Value; var playerData = server.GetUserData({ PlayFabId: currentPlayerId, Keys: [data] }); var data2 = args.Value2; var playerInfo = server.GetUserReadOnlyData({ PlayFabId: currentPlayerId, Keys: [data2] }); return {"Value": playerData.Data[data].Value, "Value2": playerInfo.Data[data2].Value2} }
I did this but it's not working! Thanksss