Hi, i'm trying to execute an Azure CloudScript function through a Scheduled Task but it keeps failing. I need to get and set a value on Internal Title Data. Here's the code and error.
[FunctionName("TaskTest")] public static async Task Run([HttpTrigger(AuthorizationLevel.Function, "post", Route = null)] HttpRequest req, ILogger log) { string body = await req.ReadAsStringAsync(); ScheduledTaskFunctionExecutionContext<object> ctx = JsonConvert.DeserializeObject<ScheduledTaskFunctionExecutionContext<object>>(body); if (ctx.TitleAuthenticationContext != null) { SetTitleDataRequest request = new SetTitleDataRequest { Key = "Test", Value = "1", TitleId = ctx.TitleAuthenticationContext.Id }; await PlayFabAdminAPI.SetTitleInternalDataAsync(request); } }