Skip to main content

Notifications

Power Apps - Building Power Apps
Unanswered

Need Lookup function to bring back DisplayName from Lookup list to destination list person field in form

(0) ShareShare
ReportReport
Posted on by 85

I have a lookup list named 'State Email Master' with the state (text), email address (text), and Rep (person field, multi-choice) fields. I have Three additional fields in my main form named State, 'Rep Email' (text), and 'Rep' (person field). I successfully have the 'Rep Email' field populated when the state field matches from the form to the lookup list using the below formula:

 

LookUp('States Email Master', State = Dropdown1.Selected.State, 'Email Address')

 

However I can't get the 'Rep' person field to populate from the lookup list using the same formula, obviously trying different field name combinations for the rep field.

  • ShawnPelletier Profile Picture
    ShawnPelletier 85 on at
    Re: Need Lookup function to bring back DisplayName from Lookup list to destination list person field in form

    This is what I used for the 'Reps' field in my form:

    Concat(LookUp('States Email Master', State = Dropdown1.Selected.State, 'Sales Reps'), DisplayName, ",")

     

    It's coming up with a generic message stating there is an error somewhere, if I use Concatenate instead it says the function has some invalid arguments.

  • RandyHayes Profile Picture
    RandyHayes 76,287 on at
    Re: Need Lookup function to bring back DisplayName from Lookup list to destination list person field in form

    @ShawnPelletier 

    The question is - your Rep column is a multi-select column...so, which choice would you want to look up??  The first one, the last one, or all of them?

     

    First one:

    First(LookUp('States Email Master', State = Dropdown1.Selected.State, Rep)).DisplayName

    Last one:

    Last(LookUp('States Email Master', State = Dropdown1.Selected.State, Rep)).DisplayName

    All of them:

    Concat(LookUp('States Email Master', State = Dropdown1.Selected.State, Rep), DisplayName, ",")

     

    I hope this is helpful for you.

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard