cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jay95
Helper I
Helper I

Not able to store multiple selected value of combo box in to sharePoint list

Hello Expert!

I am unable to save multiple selected value of combo box in to sharePoint list, Only first value of combobox is saving in sharepoint list.

 

I have attached screenshot below Please help:

 

 

jay95_0-1617965752134.pngjay95_1-1617965776316.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@jay95 

Very good.

 

So, your Update property needs to be:

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

 

Your DefaultSelectedItems property of the combobox needs to be:

    Filter(Split(Parent.Default, ","), !IsBlank(Result))

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

8 REPLIES 8
RandyHayes
Super User III
Super User III

@jay95 

Your Update property of your DataCard should be:

  yourComboboxControlName.SelectedItems

 

Check that it is that and not just .Selected.

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Hi Randy!

 

Thanks for your response.

 

When I use selectedItem, It will show an error as below screenshot:

jay95_0-1617974340634.png

 

RandyHayes
Super User III
Super User III

@jay95 

How is your column defined in your SharePoint list?  Is it defined to allow multiple values?  Is it a choice column?

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

It is multi line text column

RandyHayes
Super User III
Super User III

@jay95 

The assumption was that you had a choice column as that is typically what you want to populate from a multi-select combobox.

 

So, if you have a multiline text column instead, then there are some more questions

- what is your Items property of the combobox?

- what format are you expecting to store the choices of the combobox into text?

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

My Item Properties:

Distinct('SharePoint List Name','Column Name')
I want to store this in to the same row by comma separated or any format

RandyHayes
Super User III
Super User III

@jay95 

Very good.

 

So, your Update property needs to be:

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

 

Your DefaultSelectedItems property of the combobox needs to be:

    Filter(Split(Parent.Default, ","), !IsBlank(Result))

 

 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

jay95
Helper I
Helper I

Hello Expert!

I did everything from below screenshot, But this time I am getting error of default property in Combo Box, 

Saved value is not showing when I open form in edit or view mode.

what will be the default property for Combo BOx.

 

jay95_2-1622621393626.png

 

 

jay95_1-1622621375482.png

 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (22,465)