web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to write condition...
Power Apps
Answered

How to write conditions not to make errors ? (Office365Users )

(0) ShareShare
ReportReport
Posted on by 28

Use function Office365Users 

If(IsBlankOrError(Office365Users.ManagerV2(Manager5.Text).mail), "", Office365Users.ManagerV2(Manager5.Text).mail )

 

IsBlankOrError(Office365Users.ManagerV2(Manager5.Text).mail) = true 

 

Condition

true (Show blank)

false (Use function Office365Users  )

 

but this condition Error Runtime . How to avoid error?

 

189675450_982952625846548_5779123543728448813_n (1).png

 

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Littlecatt Try this,

    If(IsError(Office365Users.ManagerV2(Manager5.Text).mail), "", Office365Users.ManagerV2(Manager5.Text).mail )
  • Littlecatt Profile Picture
    28 on at

    186459653_161335259284365_5153706438538810962_n.png

    It still error.

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Littlecatt  Try turning on "Formula-level error management" in the App Settings.

  • Littlecatt Profile Picture
    28 on at

    Fantastic. The error is gone now. Thankyou very much. 
    I spent so much time to find solution of this error.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Littlecatt 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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard