Hi, I'm having trouble with FunctionExecutionContext<T>.CallerEntityProfile.DisplayName is null in Azure Functions (C#).
Here's the Azure Functions code in question.
public class Function1 { [FunctionName("Function1")] public string Run([HttpTrigger(AuthorizationLevel.Function, "get", "post", Route = null)] FunctionExecutionContext<string> request) { return request.CallerEntityProfile.DisplayName; // this is null } }
* FunctionExecutionContext<T> uses this.
https://github.com/PlayFab/PlayFab-Samples/blob/master/Samples/CSharp/AzureFunctions/CS2AFHelperClasses.cs
I called this Azure Functions from a client using the C# SDK like this
var executeFunctionRequest = new ExecuteFunctionRequest { Entity = new PlayFab.CloudScriptModels.EntityKey() { Id = "41BBE5497F9DE458", Type = "title_player_account" }, FunctionName = "FunctionA", }; await PlayFabCloudScriptAPI.ExecuteFunctionAsync(executeFunctionRequest);
At this time, Azure Functions received FunctionExecutionContext<T>.CallerEntityProfile.DisplayName is null.
{ "CallerEntityProfile": { "AvatarUrl": "http://test.avatar.url", "Created": "2020-08-02T11:31:17.1484252Z", "DisplayName": null, "Entity": { "Id": "41BBE5497F9DE458", "Type": "title_player_account" },...
I can see the DisplayName in the GameManager. Is this a bug?