Announcements
HiI am getting this error
When I am using this code
Can anybody help out with the problem. I have tried a lot of things, but nothing seems to solve it. I recieve the right text from it, but keep getting the error
@Anonymous
Can you please try replacing this code
Office365Users.MyProfile().Mail
With this code
Office365Users.MyProfile().Id
---Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
@mdevaney The same error occurs
Can you please put this code in the Text property of a label and let me know the result? This will show us what information is being passed in your formula.
@mdevaney It is giving me my email address
From our testing I think your code is correct and your profile's email is configured correctly. I think what is happening is the Manager's email is being called before the email is found by MyProfile. We will need to try a few things.
Please put this code in the OnStart property of your app
Set(myEmailAddress, User().Email)
Then replace
myEmailAddress
Please go to Azure AD to check if the user has assigned the Manager. If the user doesn't have the Manager, the function will return the Error.
Also, you can change another user who has been assigned a Manager and try again to see if the error is gone.
Sik
The user, aka. me is assigned the manager
Sorry the late answer, but this solution does not work either
It does not show the red error anymore when using:
Office365Users.Manager(User().Email).DisplayName
Don't panic!
Simple Enable this:Go to«Experimental features section» -> Enable «Formula-level error management»
and Use this Formula: IfError(Office365Users.ManagerV2(User().Email).displayName,"");
was glad to help 😊
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 395 Super User 2026 Season 2
Mohsin Ali 328
WarrenBelz 260 Most Valuable Professional