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 / Using the Patch Functi...
Power Apps
Unanswered

Using the Patch Function on Form Dropdowns and Form Dates

(0) ShareShare
ReportReport
Posted on by 15

I am trying to pull a Selected Value from a dropdown in a form, and use the patch function to send it to a SharePoint List. Here is my Code: 

 

Patch('UR Rounds', Defaults('UR Rounds'), {Status:'Dropdown - EFS Filters'.Selected.Value, 'Title':DataCardValue8.Text, 'LastName':DataCardValue9.Text, 'Day/Night':DataCardValue10.Selected.Value, 'Date':DateValue2.Date})

 

DataCardValue10 is a drop down where the user selects either Days or Nights. DateValue2 is a date selector.  The other items in this patch command work, including the dropdown labeled 'Dropdown - EFS Filters'.

 

WillMurphy_0-1680547175789.png

 

Categories:
I have the same question (0)
  • mmollet Profile Picture
    3,187 on at

    Im not quite sure I understand what you are asking for. If you could clear that up a bit for me I'd be glad to try and help and im sure other would be as well. 🙂

  • WillMurphy Profile Picture
    15 on at

    I got it figured out. Here is the correct code:

     

    Patch('UR Rounds', Defaults('UR Rounds'), {Status:'Dropdown - EFS Filters'.Selected.Value, FirstName:DataCardValue8.Text, LastName:DataCardValue9.Text, Date:DateValue2.SelectedDate, 'Day or Night':DataCardValue10.Selected.Value, Location:{Value:"EnergeX Feed System"}, Task:{Value:"Filters Clean"}})

     

    Thank you for the consideration! 

  • Verified answer
    WillMurphy Profile Picture
    15 on at

    Essentially, My SharePoint list Column type was "Choice" and it needed to be "Single Line of Text"

  • mmollet Profile Picture
    3,187 on at

    Yeah using complex columns in SP is a pain in the ass and I avoid it at all costs. I use number/int, text, and date columns almost exclusively. Glad you got it!

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