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 / GetOffice365Users stra...
Power Apps
Answered

GetOffice365Users strange issue

(0) ShareShare
ReportReport
Posted on by 5,836 Moderator

In my app I am using the GetOffice365Users to obtain manager information.    I am getting both the display name and the email.

 

GetOffice365Users.png

 

The ID parameter is the same for both statements, but it's giving me this error on one.    What is even odder is that it is retrieving the information successfully for both.

 

Any ideas?

Categories:
I have the same question (0)
  • Verified answer
    PowerAddict Profile Picture
    7,316 Most Valuable Professional on at

    @JR-BejeweledOne so the issue is that since ComboboxEmployeeInfo.Selected.Mail can be blank, it throws an error which is more like a warning, that the function has an invalid value for parameter 'id'. All you need to do is this: 

    Set(varManagerDN, If(!IsBlank(ComboboxEmployeeInfo.Selected.Mail), Office365Users.ManagerV2(ComboboxEmployeeInfo.Selected.Mail).displayName));
    
    Set(varManagerEmail, If(!IsBlank(ComboboxEmployeeInfo.Selected.Mail), Office365Users.ManagerV2(ComboboxEmployeeInfo.Selected.Mail).mail));
    
    Set(varManagerTitle, If(!IsBlank(ComboboxEmployeeInfo.Selected.Mail), Office365Users.ManagerV2(ComboboxEmployeeInfo.Selected.Mail).jobTitle));

    Let me know if this works. 

     

    ---
    If you like this reply, please give kudos (Thumbs Up). And if this solves your problem, please mark this reply as a solution by selecting Accept as Solution. This makes it easier for others to find answers to similar questions. 

     

    Thanks!

    Hardit Bhatia

    Microsoft Business Applications MVP

    Microsoft Certified Trainer MCT

    Blog | Twitter | LinkedIn | Facebook | YouTube  |  Email

     

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