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

Community site session details

Session Id : Sikax2hQZzWqi/r7BSCEL6
Power Apps - Building Power Apps
Answered

Patch Dropdown Selection to Sharepoint List Column

Like (0) ShareShare
ReportReport
Posted on 19 Aug 2022 13:37:07 by 107

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

I have the same question (0)
  • lascough20 Profile Picture
    107 on 25 Aug 2022 at 12:45:05
    Re: Patch Dropdown Selection to Sharepoint List Column

    Finally, got there. In the Size SP list I had renamed the first column "Size" however, Powerapps was identifying this column as "Title". The working formula is Size:ddSize.Selected.Title 

    Probably a basic beginners error.

    Thank you very much for your help (and patience).

    Lee

  • lascough20 Profile Picture
    107 on 24 Aug 2022 at 14:55:04
    Re: Patch Dropdown Selection to Sharepoint List Column

    I'm getting closer, thanks. The ddProduct is working but the ddSize for some reason is not. Leave it with me and I'll try and work it out (I may be back).

    Thanks for all your help so far.

  • Verified answer
    RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 24 Aug 2022 at 14:10:04
    Re: Patch Dropdown Selection to Sharepoint List Column

    @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

  • lascough20 Profile Picture
    107 on 24 Aug 2022 at 13:57:34
    Re: Patch Dropdown Selection to Sharepoint List Column

    They are single line of text columns.

  • RandyHayes Profile Picture
    76,287 Super User 2024 Season 1 on 24 Aug 2022 at 13:54:04
    Re: Patch Dropdown Selection to Sharepoint List Column

    @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
    107 on 24 Aug 2022 at 10:23:55
    Re: Patch Dropdown Selection to Sharepoint List Column

    @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,287 Super User 2024 Season 1 on 22 Aug 2022 at 17:10:10
    Re: Patch Dropdown Selection to Sharepoint List Column

    @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
    107 on 22 Aug 2022 at 07:47:19
    Re: Patch Dropdown Selection to Sharepoint List Column

    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,287 Super User 2024 Season 1 on 19 Aug 2022 at 18:04:36
    Re: Patch Dropdown Selection to Sharepoint List Column

    @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
    107 on 19 Aug 2022 at 14:06:41
    Re: Patch Dropdown Selection to Sharepoint List Column

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading started
Loading complete