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 / Unable to get the Emai...
Power Apps
Unanswered

Unable to get the Email address of a SharePoint People/Group field

(0) ShareShare
ReportReport
Posted on by 3,514

We have a field which represents a SharePoint People/Group field, and we want to get the Mail of the selected user, i tried this formula:-

 

First(Office365Users.SearchUser({searchTerm:DataCardValue32.Selected.Value})).Mail

 

but got this error:-

 

Office365Users.UserProfileV2 failed: { "error": { "code": "ResourceNotFound", "message": "User not found", "innerError": { "date": "2022-09-03T08:20:24", "request-id": "2fea53cd-8e0c-4f05-9125-dc89cfe525f7", "client-request-id": "2fea53cd-8e0c-4f05-9125-dc89cfe525f7" } } }

 

 

Any advice?

Thanks

Categories:
  • WarrenBelz Profile Picture
    156,748 Most Valuable Professional on at

    @johnjohn123 ,

    Assuming DataCard32.Selected.Value is the User's correct DisplayName,it is correct. I just tested it here and it worked fine. You might check your AD.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    Visit my blog Practical Power Apps

  • johnjohn123 Profile Picture
    3,514 on at

    yes

    DataCardValue32.Selected.Value

     

    will return the display name of the user... so why this is not working in my case?Thanks

    @WarrenBelz

  • WarrenBelz Profile Picture
    156,748 Most Valuable Professional on at

    @johnjohn123 ,

    I am saying it should - it is correct from my knowledge and it worked fine for me. I assume this is a single select control ? As a test, type the name in a Text box and use the formula on that.

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    If its a people/group field you don't need to search to get the email address.  The email address is one of the properties of the field.  .Value is the display name, but Email should be another property of the selected value.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 283

#3
Mohsin Ali Profile Picture

Mohsin Ali 221

Last 30 days Overall leaderboard