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 / Why can't i Lookup on ...
Power Apps
Unanswered

Why can't i Lookup on a choice field?

(0) ShareShare
ReportReport
Posted on by 8

Hello fellows,

 

I've been wraping my head around this question

 

I have a "persons" field in Sharepoint;

 

In powerapps to get the list of everyone I would make a table with the items property as

 

 

 

 

 

 

 

 

Choices(DataSource.Users)

 

 

 

 

 

 

 

 this will create a table with the collumns

 

 

 

 

 

 

 

Claims, Email, Department, DisplayName, Job Title

 

 

 

 

 

 

 

Being this table filled with all the users in the corporation.

 

My problem lies here:

Why does

 

 

 

 

 

 

 

Lookup(Choices(DataSource.Users);Email = "email@imsureisthere.com")

 

 

 

 

 

 

 

return no record?

 

This happens with any email and even using User().Email for my own email

 

Truly thankful for any insights

 

EDIT:

 

It doen't give an error, it instead returns and empty table as if the searched email wasn't in Choices(DataSource.Users)

 

 

Edit:

 

Choiches(Users.EmailDiretor) returns a table

2024-02-09 10_15_29-Power Apps — Mozilla Firefox.png

When i try to lookup on that table i don't get a record even using my User().Email

2024-02-09 10_14_53-Power Apps — Mozilla Firefox.png

Categories:
  • Micky Profile Picture
    365 Moderator on at

    Try this.

    LookUp(DataSource,person_field.Email = "email@imsureisthere.com")
  • mmbr1606 Profile Picture
    14,629 Super User 2026 Season 1 on at

    Hey @dinisbento 

     

    You can also try this:

     

    Filter(Choices(DataSource.Users), Email = "email@imsureisthere.com")

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

     

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @dinisbento,

    Try to make sure if there is lower or upper case in your email address.

    Lookup(Choices(DataSource.Users);Trim(Lower(Email)) = Trim(Lower("email@imsureisthere.com")))
  • dinisbento Profile Picture
    8 on at

    this will give me all records on the main table with the email, but i want to retrieve 1 person record from the Choices(Datasource.Users) which is a table with the companies office365 users. i want to assign a person to a role automatically with out listing all the e-mails by hand, So i need to make a logic, if field X is A the person P gets an e-mail, i need this lookup or anything that return a full record from the choices list to apply on my condition.

  • dinisbento Profile Picture
    8 on at

    This will return a string with the email on the main sharepoint list, but i need the record of a full person which appears as an option in the dropdown list that's linked to a "persons" type field in a sharepoint list. This field is a table inside a table that contains the selected users picture, DiplayName, Email and other info

  • dinisbento Profile Picture
    8 on at

    Good Idea but unfortunatly didn't work, I'll edit the main post with some images so you cant take a better look

  • dinisbento Profile Picture
    8 on at

    UPDATE:

     

    Using the filter function I can 1/3 of the times get a return

    i'm guessing there is a bug or im not using the best way to get to this data

    a few examples, all the emails in the example exist and should return a line:

     

    dinisbento_1-1707483250360.png

    dinisbento_2-1707483413471.pngdinisbento_3-1707483446004.pngdinisbento_4-1707483511662.png

    btw the ang*** field thats not being return exist in the sharepoint list

     

    dinisbento_5-1707486402553.png

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard