Forum Discussion
PowerApps function looks at old email
Hello,
Recent changes where made my company that lead to changing emails prefix and now all of PowerApps form do not recognize for example my profiles manager. I am getting erro Email A doesn't exist but I am using Email B. What could be the problem?
{
Claims:"i:0#.f|membership|" & Office365Users.ManagerV2(User().Email).mail,
Department:"",
DisplayName: Office365Users.ManagerV2(User().Email).displayName,
Email: Office365Users.ManagerV2(User().Email).mail,
JobTitle:"",
Picture:""
}
- Micca0815Iron Contributor
LukasSliuzas
am uncertain regarding the changes within your tenant but perhaps it`s the othermail attribute which holds the current SMTP address rather than the mail attribute.
How about the following approach?Set(MyUser,
Office365Users.MyProfileV2()
);Set(MyManager,
Office365Users.ManagerV2(MyUser.id)
);
in order to specify:{ '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser", Claims: Concatenate("i:0#.f|membership|",First(MyManager).UserPrincipalName), Department:First(MyManager).Department, DisplayName: First(MyManager).DisplayName, Email: First(MyManager).Mail, JobTitle:".", Picture:"." }
- LukasSliuzasCopper Contributor
Micca0815 I found another solution. Deleted all my connectors and reseted the browser.