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 Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (2,071)