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
Solved! Go to Solution.
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.
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.
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 & ",")
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
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"
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.
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
278 | |
233 | |
80 | |
38 | |
37 |
User | Count |
---|---|
352 | |
240 | |
125 | |
72 | |
54 |