I am trying to pre-populate a user manager's manager field in a PowerApps form based on a selection made in a Person field. When the user selects an employee from the People Picker field, the Manager's Manager field should auto-populate with the employee's manager of manager. I used the following formula, but it doesn't show the Manager's manager when a new form is loaded (See picture). The manager's manager doesn't show until I removed the employee's name from the People Picker and add her name back to the People Picker field. What am I missing?
DataCardValue6 is a data card for the employee name field.
{
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & Office365Users.ManagerV2(Office365Users.ManagerV2(DataCardValue6.Selected.Email).mail).mail,
DisplayName: Office365Users.ManagerV2(Office365Users.ManagerV2(Office365Users.UserProfile(DataCardValue6.Selected.Email).UserPrincipalName).userPrincipalName).displayName
}, Parent.Default)
Thanks for your help.