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 / Return value from anot...
Power Apps
Answered

Return value from another sharepoint list using a LOOKUP

(0) ShareShare
ReportReport
Posted on by 1,151

Hi
i have a person/group field that has to be completed in a form which will be submitted to a list.
What i would like to do is check the name and return the latest record from another list (if exists) this is to be used in validation not resubmitted.
so if name in DataCard7 = the field in other sharepoint list (another person field) then return the latest value of 'date of assessment' column(lookUP List) for that person

i have (with my limited logic) come up with this but as my logic is flawed it does not work.
TEXT = If(LookUp('BA1 Hot wear', DataCardValue7.Selected.DisplayName = 'Candidate Name'),'Date of Assessment')

regards gary

Categories:
  • pontusofsweden Profile Picture
    255 on at

    Hi!

    First of all, I dont really know why you have an If-statement. If you dont find a record, it will give you a blank value anyway. Second, the "DisplayName" you are referring to is the property DisplayName of the DataCard control. Since a form already is connected to a specific record, you could use ThisItem instead. Also, since a person field in SP only refers to an Id, you need to go a step further to retrieve the DisplayName. See formula below:

     

    TEXT = LookUp('BA1 Hot wear', 'Candidate Name'.DisplayName = ThisItem.Person.DisplayName,'Date of Assessment').

     

    Change "Person" to your column name, that should do the trick 🙂

     

    BR Pontus

  • Verified answer
    gazzo1967 Profile Picture
    1,151 on at

    @pontusofsweden 
    HI

    Thank you for the response 🙂

    Your suggestion gave me the right direction.
    on looking back yes you are right i don't know why i used IF either..been a long day 😞

    What i actually need to make my function work was this
    LookUp('BA1 Hot wear', 'Candidate Name'.DisplayName = DataCardValue7.Selected.DisplayName,'Date of Assessment')
    Thank you for giving me direction 🙂

    Gary

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard