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 / Patch Dropdown Selecti...
Power Apps
Answered

Patch Dropdown Selection to Sharepoint List Column

(0) ShareShare
ReportReport
Posted on by 112

Hi All

 

I have a form that contains textboxes, dropdowns and cascading dropdowns. I have managed to use the Patch function to transfer the textbox contents to my sharepoint list columns but I am struggling with the dropdowns.

The sharepoint list is called TTSiteInfo, the Patch function (on a "Submit" button) so far is below:

 

lascough20_0-1660916010540.png

Can anyone add to this so the selected dropdown & cascading dropdown values also transfer? 

Thanks in advance

Lee

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @lascough20 

    If they are choice column types in your list, then you simply need to supply the value for the column.

    i.e.

       yourChoiceColumnName:  {Value: yourDropdown.Selected.columnName}

     

    If your Items property of the dropdowns is based on a table with a Value column, then you only need to supply the following:

       yourChoiceColumnName:  yourDropdown.Selected

     

    I hope this is helpful for you.

  • lascough20 Profile Picture
    112 on at

    I've got both types so I will give this a try and let you know. 

    Thanks and have a good weekend.

  • lascough20 Profile Picture
    112 on at

    Ok, the choice column worked perfectly but the others didn't.

     

    There are 3 other dropdowns, two of them cascading and depend on the dd1 selection. All three are populated from different sharepoint lists. I hope this makes sense.

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

    @lascough20 

    Yes, but can you provide:

    1) your current formula that is not working

    2) the Items property of your dropdown controls.

  • lascough20 Profile Picture
    112 on at

    The working formula is highlighted below. This is a choices column (titled 'Pass') from the TTSiteInfo list.

    lascough20_0-1661154072231.png

    I tried both options you gave for the other dd's with no joy.

     

    The items for the ddlists which will not transfer are:

    parent dd (ddproduct), - Distinct(Product,Title)

    child dd (Size) - Filter(Size,Product.Value=ddproduct.Selected.Result)

     

    Hope this helps.

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

    @lascough20 

    Is Pass the choice column??

     

    For the ddproduct, the only column that will be available to use is the Result column since you used Distinct on that.

    For the Size, your will have all of the columns of the Size list available to you to choose from.

     

    But I'm a little lost on what exactly is not working.  You provided what "does" work.  Can you provide an example of what "doesn't" work?

  • lascough20 Profile Picture
    112 on at

    @RandyHayes

    Sorry, I guess I'm confusing things with the different dropdowns. Ignore the Pass / ddresult as this is working.

     

    Below are the two dropdowns I am having trouble with.

    lascough20_0-1661336173373.png

     

    parent dd (ddproduct), - Distinct(Product,Title)

    child dd (ddSize) - Filter(Size,Product.Value=ddproduct.Selected.Result)

     

    I want the results of each to transfer to a Sharepoint list column. Basically I carry out tests on products, all of which have different sizes available. This is recorded using the Powerapp then transferred, along with other information, to a Sharepoint list (by pressing a 'submit' button). Everything is transferring apart from the results of these two dropdowns. 

     

    I hope this explains better. Thanks

     

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

    @lascough20 

    Yes, I re-read through things and am not seeing what kind of columns you have for Product and Size.  Are they Choice, Lookup or just Text columns?

     

  • lascough20 Profile Picture
    112 on at

    They are single line of text columns.

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

    @lascough20 

    Very good, then based on your Items property, you should have those columns in your patch formula (not seeing them now)

     

    They would be something like this (adjust column names as needed):

     Product: ddproduct.Selected.Result,
     Size: ddSize.Selected.<columnYouWantHere>

     

    Your ddproduct will only have a Result column because you used Distinct - and that creates a table with a single column record of Result.

    Your ddSize will have the full record from the Size list.  So, depending on what column contains the text that you want to store, just change that in the <columnYouWantHere> part.  So if it is something like "Title", then it would be ddSize.Selected.Title

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
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard