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 / Updating a sharepoint ...
Power Apps
Answered

Updating a sharepoint list based on what user selected in combobox

(0) ShareShare
ReportReport
Posted on by 92

Hi all,

 

I'm trying to figure out how to update a ShP list item based on what user selected in combobox. I have 1 sharepoint list that cointains some information a 2 sharepoint list that I want to copy and paste the information into from the sharepoint list 1. 

 

What I have is a combobox in which a user can select certain value. If that happens (user selects something), I want to take what he selected and paste it inside a column into a sharepoint list 2. 

 

I have this line of code, but it seems it doesn't work with comboboxes:

 

UpdateIf(Catering, 'Subject' = UdalostVar.'Subject', { 'Cost center': Nakl_Stredisko_Combobox.Selected } );

 

 

The 'UdalostVar' is variable that I created above so the user can select the row that needs to be updated.

 

Any idea how to do this?

 

Thanks!

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

    @acolyter 

    This will depend on what type of column 'Cost center' is and what your Items property of the combobox is.

    If you can expand on those details, that would be helpful.

  • acolyter Profile Picture
    92 on at

    @RandyHayes 

    'Cost center' is a Number type column. 

     

    Items property of the combobox is:

     

     

    Distinct(Filter('Nákladové středisko', Person.DisplayName = User().FullName), Cislo_Strediska)

     

     

    I'm taking the information from sharepoint list 1, that's the 'Items' property in the combobox.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @acolyter 

    Very good.  Then consider changing your original formula to the following:

    UpdateIf(Catering, 
     'Subject' = UdalostVar.'Subject', 
     { 'Cost center': Value(Nakl_Stredisko_Combobox.Selected.Result) } 
    );
  • acolyter Profile Picture
    92 on at

    Perfect, that works. Thank you!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard