cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KotaroKo
Helper III
Helper III

Hide error message for Office365users.Manager() function

Hi, guys! I want to hide the error message, when no manager is found for the current office365 user. Is it possible?

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User
Super User

@KotaroKo 

Turn on formula level error management in the advanced settings.  Then use the IFERROR

function to trap the error.

 

IfError(Office365Users.ManagerV2(“johndoe@yourcompany.com”), “”)

---
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."

View solution in original post

3 REPLIES 3
mdevaney
Super User
Super User

@KotaroKo 

Turn on formula level error management in the advanced settings.  Then use the IFERROR

function to trap the error.

 

IfError(Office365Users.ManagerV2(“johndoe@yourcompany.com”), “”)

---
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."

Juser007
Frequent Visitor

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 😊

 

MidwinterTrain
Frequent Visitor

Many thanks, this solution works great to solve the ManagerV2 error, however I cannot apply it as it trigs this time error.

I am trying to figure out how to solve it; any suggestion would be welcome.

 

MidwinterTrain_0-1649144655403.png

 

MidwinterTrain_1-1649144797538.png

 

 

 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (1,677)