cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
trishmalloy
Post Partisan
Post Partisan

How to add data to SharePoint from PowerApps?

Hello,

 

How can ad-hoc data ("allow fill-in choices") from a pre-populated combo box be added to SharePoint from PowerApps?

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @trishmalloy ,

The reason why you met this problem is that:

The text that you fill in combo box manually is used to search the items that has existed in the combo box's Items.

It can not represent as combo box.Selected value, so it will not be used as updated value.

"combo box.Selected" could only return value when you act the action "select".

So to choose choices and add choice, I suggest you not use combo box.

Combo box can not be used to enter data to update.

I suggest you insert a textinput and a button to make this.

I've made a similar test for your reference:

1)insert another textinput and another button in the choice datacard (do not delete the combo box)

2)set the button's OnSelect:

ClearCollect(test,Choices([@list1].choicefield));If(IsEmpty(Filter(test,Value=TextInput1.Text)),Collect(test,{Value:TextInput1.Text}))

3)set the combo box's Items:

test

//Then, if you want to enter new choice value, please fill in data in the textinput, then click the button.

Then you choose items in the combo box, the added choice will display in the combo box list.You could choose it to update.

1131.PNG

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Pstork1
Dual Super User III
Dual Super User III

What kind of column is behind the combobox choices in SharePoint?  If its a Choice column that has been set to allow Fill-in Choices you should be able to add the value using a Patch statement or Submit the same way you normally would.  Are you sure the SharePoint column is set to allow Fillin?



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hi Paul,

 

I made sure the column (choice) was set to allow fill-in data.  I see "Find Items" on the combo box but when I type in an entry that isn't there, I can't press enter to add the item into the SharePoint column.  If this can be done I'm not sure how to do it, and is there a way to alphabetize the choices that are manually entered into PowerApps?

Pstork1
Dual Super User III
Dual Super User III

YOu'll need to pick up the value from the SearchText property of the combobox.  That will give you the value to patch.  Take a look at this previous thread.

https://powerusers.microsoft.com/t5/Building-Power-Apps/Allow-ComboBox-Fill-In-Values/td-p/233805



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hi @trishmalloy ,

The reason why you met this problem is that:

The text that you fill in combo box manually is used to search the items that has existed in the combo box's Items.

It can not represent as combo box.Selected value, so it will not be used as updated value.

"combo box.Selected" could only return value when you act the action "select".

So to choose choices and add choice, I suggest you not use combo box.

Combo box can not be used to enter data to update.

I suggest you insert a textinput and a button to make this.

I've made a similar test for your reference:

1)insert another textinput and another button in the choice datacard (do not delete the combo box)

2)set the button's OnSelect:

ClearCollect(test,Choices([@list1].choicefield));If(IsEmpty(Filter(test,Value=TextInput1.Text)),Collect(test,{Value:TextInput1.Text}))

3)set the combo box's Items:

test

//Then, if you want to enter new choice value, please fill in data in the textinput, then click the button.

Then you choose items in the combo box, the added choice will display in the combo box list.You could choose it to update.

1131.PNG

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,226)