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 / Feed combobox from tex...
Power Apps
Answered

Feed combobox from text column (SPO LIST) with multiple values

(0) ShareShare
ReportReport
Posted on by 834

Hi guys, 

i have a combobox that has a source another sharepoint list
ITEMS:

 

'Customer Visit - Access list'.Title

 

so far all good, once i save the choices to the list with a patch:

 

Patch('Customer Visit - Registration', LookUp('Customer Visit - Registration', Title = visitID_1.Text),
{ SharedWith: Concat(sharedwith.SelectedItems.Title, Title & ",") } )

 

i want to make it again visible for the user who opens this "case" again... but this wont work...
DefaultSelectedItems

 

ForAll(
 Split(LookUp('Customer Visit - Registration', Title = visitID_1.Text).SharedWith, ","),
 {
 Value: Result
 }
)

 

 any idea how to build the default selected items?

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Sifu 

    Consider changing your formula to the following:

    ForAll(
     Split(LookUp('Customer Visit - Registration', Title = visitID_1.Text).SharedWith, ","),
     {
     Title: Result
     }
    )

    Your formula for the Items does a narrowing filter to return only the Title column.  Therefore your DefaultSelectedItems must match.  In your original formula "Value:" does not match "Title:"

     

    I hope this is helpful for you.

  • Sifu Profile Picture
    834 on at

    hi, thanks for feedback but did not help 😞

    does the default property requires something else? ....currently empty... or some thing else?

  • Sifu Profile Picture
    834 on at

    @RandyHayes  just an idea, could it be different...currently not working because its in a gallery?

  • Verified answer
    Sifu Profile Picture
    834 on at

    @RandyHayes  I figured it out... the problem was in the patch... it puts a comma even after the last one which is something the combo does not like...

    Patch('Customer Visit - Registration', LookUp('Customer Visit - Registration', Title = visitID_1.Text),
    { SharedWith: Concat(sharedwith.SelectedItems.Title, Title & ",") } )
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Sifu 

    Ah yes, you need to filter those out...

    ForAll(
     Filter(
     Split(LookUp('Customer Visit - Registration', Title = visitID_1.Text).SharedWith, ","),
     !IsBlank(Result)
     )
     {
     Title: Result
     }
    )
  • Sifu Profile Picture
    834 on at

    no, i chcanged the patch so I dont write the last column with (left (len - 1).... works great

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard