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 / Lookup not working for...
Power Apps
Answered

Lookup not working for email address in SharePoint list, help

(1) ShareShare
ReportReport
Posted on by 170

Hello,

 

I was wondering if someone could tell me what I am doing wrong.  I need to unhide some buttons in my Canvas form, and I am trying to do that based on the names I have a  SharePoint list called "FW ID Editors" (upper right image).   

 

In the App --> OnStart I am assigning the users email to "varUserEmail" (upper left image).  I confirmed that this is working by printing this variable in a textbox (the red circled area on bottom image).   

 

The error that I am getting is in the bottom image, I am using lookup to get the email address from the list and show it in the text box pointed to by the green arrow (formula is LookUp('FW ID Editors', EmailText = varUserEmail, EmailText)), at this point I am just trying to verify that I can get the email address. However, I am getting an error "invalid argument type" but for the life of me I do not know why.  I also tried replacing varUserEmail with the actual email address (LookUp('FW ID Editors', EmailText ="erik.ingermann@xyz.com", EmailText).

 

If I use the function:  LookUp('FW ID Editors', TestString = "Here", TestString) it returns "Here" just like it should in the textbox so the connection is there, it has something to do with the email.  If I try: LookUp('FW ID Editors', TestString = "Here", EmailText) it fails.  I also tried using Search, but that did not work either.

 

ErikH63_0-1619680140443.png

 

 

Does anyone happen to know what is going on?   I attached the image in the event it is too hard to read.

 

Thanks!   -Erik

lookup_error.jpg
Categories:
  • eka24 Profile Picture
    20,925 on at

    What Data type is EmailText, is it single line of Text?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • ErikH63 Profile Picture
    170 on at

    Sorry, no it is a "person or group".

  • Verified answer
    ErikH63 Profile Picture
    170 on at

    I think I found an answer, not sure if it is the best but what I ended up doing was assigning the"TestString" text field to the persons datacard value and selected the Email, so for the above case I made "TestString's" value "ID EditorDatacardValue.Selected.Email" and now it shows up in the other form.

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 226 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard