web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details
Power Apps - Building Power Apps
Answered

Return multiple values from Lookup field separated by comma

Like (0) ShareShare
ReportReport
Posted on 22 Jan 2024 10:59:59 by 23

Hello! 

 

I hope someone can help me to solve this because I can't find any solution for this issue.

 

I'm trying to return two values selected from a Lookup field I created and want to separate it by comma.

Fyi, DataCardValue1 is Sales Admin field that I created using Lookup (SalesAdmin list in Sharepoint)

 

So, If a user selected multiple names from Sales Admin field, I want to get their Email data from the Sales Admin list I created to fill the Pending PIC field, but I have an issue bcs it only returns one value not based on how many user selected the value in Sales Admin field. And, I also want the selected value to be separated by comma..

 

Is there any solution for this? I tried using concat in Default just like in the screenshots but it keeps giving me an error saying it has some invalid arguments.

 

Thank you so much for your help! 

 

image.png

 

Categories:
  • Verified answer
    victorcp Profile Picture
    2,347 Moderator on 22 Jan 2024 at 11:09:27
    Re: Return multiple values from Lookup field separated by comma

    Hi,

    Yes, you have to create a table with all the selected values, then lookup in the SalesAdmin and finally concat them, like this:

    Concat(
     ForAll(
     DataCardValue1.SelectedItems As item,
     LookUp(SalesAdmin, Name = item.Value)
     ), 
     Email,
     ";"
    )

     I hope it helps 🙂

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete