PowerApps function looks at old email

%3CLINGO-SUB%20id%3D%22lingo-sub-1641403%22%20slang%3D%22en-US%22%3EPowerApps%20function%20looks%20at%20old%20email%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1641403%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERecent%20changes%20where%20made%20my%20company%20that%20lead%20to%20changing%20emails%20prefix%20and%20now%20all%20of%20PowerApps%20form%20do%20not%20recognize%20for%20example%20my%20profiles%20manager.%20I%20am%20getting%20erro%20Email%20A%20doesn't%20exist%20but%20I%20am%20using%20Email%20B.%20What%20could%20be%20the%20problem%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22LukasSliuzas_0-1599485486993.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F216887iF6E83E1FB5DB5E03%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22LukasSliuzas_0-1599485486993.png%22%20alt%3D%22LukasSliuzas_0-1599485486993.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%7B%3CBR%20%2F%3EClaims%3A%22i%3A0%23.f%7Cmembership%7C%22%20%26amp%3B%20Office365Users.ManagerV2(User().Email).mail%2C%3CBR%20%2F%3EDepartment%3A%22%22%2C%3CBR%20%2F%3EDisplayName%3A%20Office365Users.ManagerV2(User().Email).displayName%2C%3CBR%20%2F%3EEmail%3A%20Office365Users.ManagerV2(User().Email).mail%2C%3CBR%20%2F%3EJobTitle%3A%22%22%2C%3CBR%20%2F%3EPicture%3A%22%22%3CBR%20%2F%3E%7D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1641403%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPowerApps%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1642548%22%20slang%3D%22en-US%22%3ERe%3A%20PowerApps%20function%20looks%20at%20old%20email%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1642548%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F385575%22%20target%3D%22_blank%22%3E%40LukasSliuzas%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3Eam%20uncertain%20regarding%20the%20changes%20within%20your%20tenant%20but%20perhaps%20it%60s%20the%20othermail%20attribute%20which%20holds%20the%20current%20SMTP%20address%20rather%20than%20the%20mail%20attribute.%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20about%20the%20following%20approach%3F%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CSPAN%3ESet(%3C%2FSPAN%3E%3CSTRONG%3EMyUser%3C%2FSTRONG%3E%2C%3CBR%20%2F%3E%3CSPAN%3EOffice365Users%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3EMyProfileV2%3C%2FSPAN%3E%3CSPAN%3E()%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3E)%3B%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%3E%3CSPAN%3ESet%3C%2FSPAN%3E%3CSPAN%3E(%3C%2FSPAN%3E%3CSTRONG%3EMyManager%3C%2FSTRONG%3E%2C%3CBR%20%2F%3E%3CSPAN%3EOffice365Users%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3EManagerV2%3C%2FSPAN%3E%3CSPAN%3E(%3CSTRONG%3EMyUser.id%3C%2FSTRONG%3E)%3CBR%20%2F%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSPAN%3E)%3B%3CBR%20%2F%3Ein%20order%20to%20specify%3A%3C%2FSPAN%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CDIV%3E%3CPRE%3E%3CSPAN%20class%3D%22cm-line%22%3E%20%20%20%7B%3C%2FSPAN%3E%3CSPAN%20class%3D%22cm-line%22%3E%20%20%3CSPAN%20class%3D%22cm-string%20cm-property%22%3E'%40odata.type'%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22cm-string%22%3E%22%23Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser%22%3C%2FSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%20class%3D%22cm-line%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22cm-property%22%3EClaims%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22cm-variable%22%3EConcatenate%3C%2FSPAN%3E(%3CSPAN%20class%3D%22cm-string%22%3E%22i%3A0%23.f%7Cmembership%7C%22%3C%2FSPAN%3E%2C%3CSPAN%20class%3D%22cm-variable%22%3EFirst%3C%2FSPAN%3E(%3CSPAN%20class%3D%22cm-variable%22%3EMyManager%3C%2FSPAN%3E).%3CSPAN%20class%3D%22cm-property%22%3EUserPrincipalName%3C%2FSPAN%3E)%2C%3C%2FSPAN%3E%3CSPAN%20class%3D%22cm-line%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22cm-property%22%3EDepartment%3C%2FSPAN%3E%3A%3CSPAN%20class%3D%22cm-variable%22%3EFirst%3C%2FSPAN%3E(MyManager).%3CSPAN%20class%3D%22cm-property%22%3EDepartment%3C%2FSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%20class%3D%22cm-line%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22cm-property%22%3EDisplayName%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22cm-variable%22%3EFirst%3C%2FSPAN%3E(MyManager).%3CSPAN%20class%3D%22cm-property%22%3EDisplayName%3C%2FSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%20class%3D%22cm-line%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22cm-property%22%3EEmail%3C%2FSPAN%3E%3A%20%3CSPAN%20class%3D%22cm-variable%22%3EFirst%3C%2FSPAN%3E(MyManager).%3CSPAN%20class%3D%22cm-property%22%3EMail%3C%2FSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%20class%3D%22cm-line%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22cm-property%22%3EJobTitle%3C%2FSPAN%3E%3A%3CSPAN%20class%3D%22cm-string%22%3E%22.%22%3C%2FSPAN%3E%2C%3C%2FSPAN%3E%3CSPAN%20class%3D%22cm-line%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3CSPAN%20class%3D%22cm-property%22%3EPicture%3C%2FSPAN%3E%3A%3CSPAN%20class%3D%22cm-string%22%3E%22.%22%3C%2FSPAN%3E%0A%3C%2FSPAN%3E%3CSPAN%20class%3D%22cm-line%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3C%2FSPAN%3E%3C%2FPRE%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

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?

LukasSliuzas_0-1599485486993.png

 

 

{
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:""
}

2 Replies

@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:"."
                }

 

@Micca0815 I found another solution. Deleted all my connectors and reseted the browser.