cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kdurgp8
Frequent Visitor

Concat for multiple selections in a listbox

Hey all, 
I see that many people have asked similar questions around getting the selection in a listbox. I have a list that is pulling from Sharepoint and displaying the "Title" field. I would like to concat all the selected items into a string so that I can later send them into an Automate Flow. I feel that I am close, but I am missing something. 

In this screenshot, I can see that I have 3 values when I hover over the "Title" in Line 1. 

kdurgp8_0-1635885744831.png


But when I hover below on the variable name, it shows the value is "Blank".  

kdurgp8_1-1635885805767.png


... And to prove that the data isn't storing and submitting, here is a screenshot in Power Automate showing the payload:

kdurgp8_0-1635886259789.png



Any Ideas? Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
kdurgp8
Frequent Visitor

Like many others, I was able to solve this. My solution was:

Set(selectedSites, Concat(ListBox_Sites.SelectedItemsText.Title, Concatenate(Text(Title),",")));


Resource:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Concat-Multiselect-Listbox-expression-error/...

View solution in original post

1 REPLY 1
kdurgp8
Frequent Visitor

Like many others, I was able to solve this. My solution was:

Set(selectedSites, Concat(ListBox_Sites.SelectedItemsText.Title, Concatenate(Text(Title),",")));


Resource:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Concat-Multiselect-Listbox-expression-error/...

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,371)