cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
lascough20
Helper I
Helper I

Patch Dropdown Selection to Sharepoint List Column

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

12 REPLIES 12
RandyHayes
Super User
Super User

@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

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

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.

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

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,532)