Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Concat for multiple selections in a listbox

(0) ShareShare
ReportReport
Posted on by 16

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!

  • Verified answer
    kdurgp8 Profile Picture
    kdurgp8 16 on at
    Re: Concat for multiple selections in a listbox

    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/m-p/294492/highlight/true#M84907

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,567

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard