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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to update information
Power Apps
Answered

How to update information

(1) ShareShare
ReportReport
Posted on by 83

The formula I have below is not working for my date picker column. Can you help me figure out what is incorrect in my formula. Thanks.

 

Patch(
   'Conditioning Tool',
   {
      ID: Gallery2.Selected.ID,
      'PO number': DataCardValue11.Text,
      'Item number': DataCardValue18_6.Text,
      'Case quantity': DataCardValue17_3.Text,
      'Dry matter %': DataCardValue22_3.Text,
      'Average Shore value': DataCardValue21_3.Text,'Conditioning days':DataCardValue22_1.Selected, 'Release Date':DataCardValue26
Categories:
  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    There are a few things

    Patch(
     'Conditioning Tool',
     Defaults('Conditioning Tool')
     {
     ID: Gallery2.Selected.ID,
     'PO number': DataCardValue11.Text,
     'Item number': DataCardValue18_6.Text,
     'Case quantity': DataCardValue17_3.Text,
     'Dry matter %': DataCardValue22_3.Text,
     'Average Shore value': DataCardValue21_3.Text,
     'Conditioning days':DataCardValue22_1.Selected, 
     'Release Date':DataCardValue26})

     missing:

     

    The defaults will create a new record. to Update it you need to Use a LookUp or filter or a Selected Item to be able to say which record will be updated.

     

  • Verified answer
    ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @tchamb2 Patch syntax is incorrect. Your BaseRecord is missing. Use default to create new record and Lookup to update existing record.

    Patch( DataSource, BaseRecord, ChangeRecord1 [, ChangeRecord2, … ])

    https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-patch

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • CU06111240-0 Profile Picture
    83 on at

    It does not work. Even when I put selected at the end.

  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    Why did you accept a solution if it does not work? 

    the selected does not come at the end. You need to identify the way how you want to filter the dataset down to one songs record.

     

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @DBO_DV , The information that I gave with reference article helped @tchamb2 to resolve the issue hence it was accepted as solution. I hope you have gone through complete thread of the post.

     

    Thanks,

    ANB

  • Daniel Bocklandt Profile Picture
    5,151 Super User 2026 Season 1 on at

    Hey @ANB ,

     

    I think there was a bug on my side since your post got accepted and 2 hours later I’ve got the notification about the response it still not working.

    As long as it’s working now I’m happy 👍🏻

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard