web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Updating combobox valu...
Power Apps
Answered

Updating combobox values in existing record

(0) ShareShare
ReportReport
Posted on by 25

Hi all,

 

I have a form with several comboboxes, and on form submission the information is being saved to a Sharepoint List. When selecting an existing record to open in the form, all the information is retrieved correctly from Sharepoint and displayed in PowerApps but an issue arises when making a change to the record and resubmitting the form.

 

What I want to happen  is for any combobox that is amended by the user in PowerApps should have the updated values reflected in the Sharepoint record,  and for any combobox that is not amended should remain unchanged in the Sharepoint Record.

 

What is actually happening is:

- Powerapps doesn't seem to recognise that there are already records in all comboboxes, except for the comma which separates the items in Sharepoint (this renders my IsBlank test moot as it keeps picking up the commas, per screenshot below)

- When adding an additional item in the multi-select comobobox PowerApps only records this new item in Sharepoint and erases the previous item

- If no amendments are made to the combobox values the original combobox values are cleared from the sharepoint record and replaced only with the comma delimiter

 

Please see example combobox & screenshots below. Any assistance will be greatly appreciated.

 

Before any amendments made to the combobox valuesBefore any amendments made to the combobox values

 

 

After amending combobox value to add "Cambodia" and submitted form, Sharepoint overrides the previous information instead of showing "Egypt, Djibouti, Cambodia"After amending combobox value to add "Cambodia" and submitted form, Sharepoint overrides the previous information instead of showing "Egypt, Djibouti, Cambodia"

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @hbbfzs ,

    Yes - that is a weakness of the workaround storing choices as comma delimited text rather than in a multi-value choice field. If any changes are to be made, you need to clear the control and re-select what you need. Maybe have a reset on the OnSelect to enforce this.

     

    Please click Accept as solution 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 Thumbs Up.

    Visit my blog Practical Power Apps

  • Verified answer
    hbbfzs Profile Picture
    25 on at

    Hi Warren et al,

     

    Thanks for your suggestion. We actually ended up finding a cleaner solution the retains the combobox values & allows it to be updated with additional items without needing to be reset.

     

    For posterity / future reference, we set the "Default Selected Items" property for comboboxes to the following format:

     

    hbbfzs_0-1655171411774.png

     

    i.e. 

    Filter('[Data Source]',[Sharepoint Column Name] in ThisItem.'[Field]')

     

    Where:

    Data Source = Sharepoint List

    Sharepoint Column Name = Sharepoint List Column Name 

    Field = PowerApps Field Name

  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @hbbfzs ,

    Yes - but not Delegable, so I was a bit reluctant to post that one. For future-proofing, I tend to reset the box OnSelect, so it enforces re-selection. A better idea however is to simply use the built-in multi-choice column function as the workaround really does not prove a lot (filters on it are still not Delegable)

  • hbbfzs Profile Picture
    25 on at

    Thanks Warren, what are the implications of not being delegable? Will it just slow down the app experience or cause to to break? 

     

    Re: the multi-choice column function, to clarify are you saying this solution has the same issue of not being Delegable? Would this just involve setting the Sharepoint Column as a "Choice Column"?

  • WarrenBelz Profile Picture
    153,084 Most Valuable Professional on at

    Hi @hbbfzs ,

    Lack of Delegation means that you may not get the full record set once the item numbers in your data source exceed your (500-2,000) Delegation limit - so it will cause it to break. The Choice column will generally need Parent.Default as the DefaultSelectedItems as long as the output of the control is .Value.

    I have a blog on this subject that may interest you.

  • hbbfzs Profile Picture
    25 on at

    Thanks Warren for your prompt response and background - your blogpost was a useful read. Given my source data only have ~200 or so records and this is very unlikely to change, the solution I noted above should be sufficient. I will, however, keep the 2,000 delegation in mind for future.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard