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

Announcements

News and Announcements icon
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

 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard