Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Combobox default selected items formulae(Combobox.SelectedItems) is not giving the expected result

(1) ShareShare
ReportReport
Posted on by 61
Hello,
 
I am facing an issue with Combobox, there are some names in a text columns and I defined Combox as people picker and showing those names by connecting office 365 profiles and the aim is to update the names column with the updated names from combobox along with the default selected names already in ComboBox. when I use the formulae Concat(combobox.selectedItems, DisplayName&";") It only gives the newly added names in the combox box in result but not the default selected names already in the combobox from column!
 
Items Property: Office365Users.SearchUser({searchTerm:(Self.SearchText)})
 
Default selected items property: 
ForAll(
      Split(
         ColumnName,
         ";"
      ) As aDisplayName,
      First(Office365Users.SearchUser({searchTerm: aDisplayName.Value})).DisplayName
   )
 
 
 
Concat(Combobox.selectedItems, DisplayName&";") shows only newly selected names in the result but not the default selected names.
 
Can anyone please help?
 
Thanks in Advance
Categories:
  • Verified answer
    WarrenBelz Profile Picture
    WarrenBelz 144,858 on at
    Combobox default selected items formulae(Combobox.SelectedItems) is not giving the expected result
    If you are writing all that back to a Text column with the DisplayName returned delimited by ; - I assume your Data Card Update is something like
    Concat(
       ComboBoxName.SelectedItems,
       DisplayName,
       ";"
    )
    in which case your DefaultSelectedItems should be
    ForAll(
       Split(
          ThisItem.ColumnName,
          ";"
       ),
       {DisplayName: Value}
    )
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn    Buy me a coffee

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

Kickstarter Events…

Register for Microsoft Kickstarter Events…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #13 Writing Effective Answers…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,858

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,505

Leaderboard