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 / problem in creating co...
Power Apps
Answered

problem in creating combo box in edit form

(0) ShareShare
ReportReport
Posted on by 10

Hi,

i have a combo box with the following code in items property:

Sort(Distinct('[mdt].[MATERIAL]', PRODUCT_FAMILY), Result, Ascending)

and i want to save multiple values in the share point list with this combo box.

so the code in the update property of the data card is:

Concat(ComboBox1.SelectedItems, Result,", ")

 

but for some reason it dont save the value in the sharepoint list.

please help

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

    @bababalush 

     

    Your formula for the Concat is a little off...it should be as follows:

       Concat(ComboBox1.SelectedItems, Result & ",")

    This will give you a comma separated list of selected items.

    I assume your SharePoint column is a text column....if the column is a choice column, then this will not work.  If so, then post back and we'll go into that one.

     

    I hope this is helpful for you.

     

  • bababalush Profile Picture
    10 on at

    Thaks for the fast answer.

    but i tried all that.

    I am getting the error "Ecpected Record value" when trying to write the function:

    Concat(ComboBox1.SelectedItems, Result & ",")

     

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @bababalush ,

    Could you tell me which field do you want to update data with multiple values in the share point list with this combo box?

    And what is this field's data type?

    Could you show me more settings of your form?

    Pictures, formulas all help.

     

     

    Best regards,

    Community Support Team _ Phoebe Liu

  • bababalush Profile Picture
    10 on at

    The field type im updating is line text or multiple line of text.

    i am using combo box (ComboBox1) with items property:

    Sort(Distinct('[mdt].[MATERIAL]', PRODUCT_FAMILY), Result, Ascending)

    this show me text list of PRODUCT_FAMILY (alias as Resault)

    in the datacard of the field , in the update property i write:

    Concat(ComboBox1.SelectedItems, Result & ",")

     

    the error i get when i hover on the property:

    "Ecpected Record value"  

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @bababalush 

    Please verify that the field/Column that your DataCard is based on is the one you mention is a Text column in SharePoint.  From the error you are getting, it leads me to believe that the DataCard is working with a different field as the result of the Concat will be a Text string and, if your field is a text column, will work fine with it.

    This error means that the DataCard is referencing a field/column that is not a text column, but instead is a table based column such as a Choice, Lookup or other type of Multi-Value column.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard