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 lookup and retu...
Power Apps
Answered

How to lookup and return user email property

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I am trying to disable the display properties of a datacard value within a form based on the value of a person field lookup from another datasource - I am trying to use something like: 

 

If(LookUp(CollectionName,ID = Value(RelatedID),Person.Email=MyEmailVariable),Edit,Disabled)

 

But it will not work due to the Person.Email properties returning a table -  It works fine if i am just returning a string value from another field. How can I format this correctly?

 

Thanks,

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    It looks like you placement of the right bracket is in the wrong place.

     

    If(LookUp(CollectionName,ID = Value(RelatedID),Person.Email)=MyEmailVariable,Edit,Disabled)

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • TiagoFreire Profile Picture
    313 on at

    Have you tried: 

     

    If(MyEmailVariable in LookUp(CollectionName,ID = Value(RelatedID),Person.Email),Edit,Disabled)

     

    ?

    The in operator can look for the value in a one column result set.

     

     

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share a bit more about the "Person" field in your another SP List? Is it a Person type field with "Allow Multiple selections" enabled?

     

    Based on the needs that you mentioned, I have made a test on my side, please consider take a try with the following formula:

    If(
     MyEmailVariable in Concat(
     LookUp(CollectionName, ID = Value(RelatedID)).Person, 
     Email & ";"
     ),
     Edit,
     Disabled
    )

    Note: I assume that the Person field in your another SP List is a Person type column, which enable "Allow Multiple selections" option

     

    Please consider take a try with above solution, check if the issue is solved.

     

    Best regards,

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 426

#2
WarrenBelz Profile Picture

WarrenBelz 381 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 315 Super User 2026 Season 1

Last 30 days Overall leaderboard