cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Dropdown and Combo box

I have created an App, where I have 2 combo boxes & 1 drop down. The choices for those boxes are coming from a table in excel. I am trying to figure out a way to save the selected values to a sharepoint list that I have. 

I created a choice column in my sharepoint list for each combo box and drop down box, but I keep getting an error message. For the drop down I have the column in my share point list called GLCode, I am not sure where I am going wrong in my formula.

 

Here is the formula I have: 

 

Patch(Rental,Defaults(Rental),{Title:"New",EqType:Title2.Text,'Duration ':DurationText.Text,GLCode: Dropdown2.Selected.Value})

3 REPLIES 3
Jeff_Thorpe
Super User
Super User

Since your column in SharePoint is a choice column it is expecting a record to be patch and not just the text value. I haven't tried this using Excel as my dropdown list in PowerApps but here is a quick change you can test. Just remove the ".Value" from "Dropdown2.Selected", so it is passing the record instead of the value.

 

Patch(Rental,Defaults(Rental),{Title:"New",EqType:Title2.Text,'Duration ':DurationText.Text,GLCode: Dropdown2.Selected})


--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
Anonymous
Not applicable

No luck with that. I get an error saying:

"Invalid argument type. Expecting a Record value, but of a different schema." 

SergioNiño
Frequent Visitor

I'm facing the same issue. Any lucky?

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,090)