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 / Combobox will Create,U...
Power Apps
Unanswered

Combobox will Create,Update a record.

(0) ShareShare
ReportReport
Posted on by 504

Hey guys, I have a combobox with multiple choices (multiselect is on)

 

So for example.

on this combobox I have selected Cash and OTC

nagestiada_2-1682501068618.png

 

So clicking the submit button will check if Cash and OTC already exist on the Share Point If exist do nothing and if not it will create two new record one for Cash and one for OTC.

 

Sharepoint will look like the table below

 

CIDProcessSelected
123456CashYes
123456OTCYes

 

 

 if the user changed the combobox to select only Cash

nagestiada_3-1682501107935.png

Then clicking the submit button will update the status to Process Selected: No since the OTC is deselected.

Sharepoint will look like the table below

 

CIDProcessSelected
123456CashYes
123456OTCNo

 

Will appreciate any help. Thank you thank you

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

    Hey @nagestiada 

     

    What you could do is that on every submit save to your table all the possible values in your combobox if they were selected or not, so that you do not need to check if value needs to be updated or not. And of course before saving you clear all existing values for this CID. So your onselect event could look like :

    ForAll(YOUR_ITEMS_SOURCE_FOR_YOUR_COMBOBOX,Patch(YOUR_SHAREPOINT_LIST,{CID:CID_ID,Process:ThisRecord.Value,Selected:ThisRecord.Value in YOUR_COMBOBOX.SelectedItems}))

     

  • nagestiada Profile Picture
    504 on at

    @alaabitar, Sorry I don't understand you. if we patch all possible values to the Sharepoint then the user clicked again the button then it will just duplicate the values

  • alaabitar Profile Picture
    1,503 Super User 2024 Season 1 on at

    @nagestiada as I mentioned before saving you clear all existing values for this CID so that you won't have duplicates.

     

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard