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 / Save combo box value t...
Power Apps
Unanswered

Save combo box value to SharePoint list

(1) ShareShare
ReportReport
Posted on by

Hi everyone,

 

I have two SP Lists:

 

SP List 1 and SP List 2 - I'm using this list to populate the value to my combo box.

 

I created a ComboBox1 and a Save button on Power Apps and I wanted to save the selected value to SharePoint list when a user choice within the ComboBox1 and click on the Save button to save.

 

My problem is the value in my Combo Box1 which is from SP List 2 is not saving in SP List 1.

 

Capture.JPG

Hope you can help me on this as I was stuck on this problem.

Thank you.

Categories:
I have the same question (0)
  • AmínAA Profile Picture
    1,228 Super User 2025 Season 2 on at

    Greetings!

     

    As it is I am having trouble thinking on what could the problem be . . . Could you share the codes you have on both comboboxes and buttons?

  • kinghnvn Profile Picture
    on at

    @AmínAA 

    Please see the codes below

    kinghnvn_0-1718592756008.png

    kinghnvn_1-1718592777211.png
    kinghnvn_2-1718592788325.png

    kinghnvn_4-1718593250404.png

    Thank you.

     

  • AmínAA Profile Picture
    1,228 Super User 2025 Season 2 on at

    Hi there @kinghnvn!

     

    After some testing I found out you can do it this way!

     

    Items property on ComboBox

    Distinct(LIST2;Country)

     

    OnSelect property on Button

    Patch(
     LIST1;
     Defaults(LIST1);
     {
     Title: "YOUR TITLE COLUMN";
     Country: {
     '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference";
     Id: LookUp(
     LIST2;
     Country = ComboBox1.Selected.Value
     ).ID;
     Value: ComboBox1.Selected.Value
     }
     }
    )

     

    PowerApps doesn't seem to like Sharepoints Search columns that much, however I have recreated both lists with the Search column and it does work for me, so hopefully it will work for you as well . . . Bear in mind you will have to add any required columns for this to work, in my case I hade the Title column which was generated by default, and the Country column, both in the LIST1 as a search and in the LIST2 as a text field.

     

    Hopefully this fixes your problems, otherwise, feel free to reply!

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard