Hi
I 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
Solved! Go to Solution.
It does not show the red error anymore when using:
Office365Users.Manager(User().Email).DisplayName
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."
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.
Office365Users.MyProfile().Mail
---
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."
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
Office365Users.MyProfile().Mail
With this code
myEmailAddress
---
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."
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
User | Count |
---|---|
253 | |
113 | |
92 | |
48 | |
38 |