Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Patch Function not recognizing field

(0) ShareShare
ReportReport
Posted on by 621

Hey All;  I can’t figure out what is wrong with my Patch function

I have a screen with 2 simple controls

The drop down selects the values from the Title column that I renamed Project Key

ctedesco3307_0-1666365494578.png

 

 

The date picker is not associated with any column or list

 

I want the Close Project button to patch the date entered in the date picker to the ClosedDate column in the PS Contracts Totals list based on the project key selected in the dropdown.

Why can’t my Patch function recognize Title? (I renamed Title Project Key in the list which is why Project Key shows in the value field for the dropdown. That Project Key value is the Title column)

 

ctedesco3307_1-1666365494584.png

 

ctedesco3307_2-1666365494586.png

Thanks in advance

 

 

 

 

 

 

  • ctedesco3307 Profile Picture
    621 on at
    Re: Patch Function not recognizing field

    @timl -- that did it!!! thank you all!!!

  • Verified answer
    timl Profile Picture
    34,933 Super User 2025 Season 1 on at
    Re: Patch Function not recognizing field

    @ctedesco3307 

    I'm pretty sure that @gabibalaban is correct.

    Just to clarify, it's the syntax of the condition inside LookUp that's incorrect. It should look like this:

    Patch( 
     'PS Contract Totals', 
     LookUp( 
     'PS Contract Totals', 
     Title=drpPKey.Selected.ProjectKey
     ),
     {ClosedDate: dtClose.SelectedDate}
    ) 

     

  • ctedesco3307 Profile Picture
    621 on at
    Re: Patch Function not recognizing field

    @gabibalaban - thanks  - but thats not working either. It's a drop down not a combo box. I tried 

     

    Title=drpPKey.Selected

    Title=drpPKey.SelectedText

    Title=drpPKey.Selected.Value

    I get incompatible types for comparison: These types can't be compared: Text, Record 

     

  • CU-18081211-6 Profile Picture
    9,266 Super User 2025 Season 1 on at
    Re: Patch Function not recognizing field

    @ctedesco3307 ,

    Title=drpPKey.Selected.Value (or the column you need from combobox selection)

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard