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 / Confused by PowerApp r...
Power Apps
Unanswered

Confused by PowerApp requirement for Patching a Date into a SharePoint List

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a very simple SharePoint List that consists of five columns:

tonycrook_0-1695227041806.png

In PowerApps, in order to allow the user to update the Time_Out column in SharePoint, I have used the Patch function to change the record. The patch function is created in a button under the ONSELECT property as follows: 

ViewForm(Form1);Navigate(DashboardScreen);Patch(E_Visitor_log2,Time_Out, {Time_Out: Now()})

 

However, I keep receiving an error stating  it is the wrong data type:

tonycrook_1-1695227289994.png

Can anyone explain what am I misinterpreting to satisfy this simple patch function? 

Categories:
I have the same question (0)
  • SebS Profile Picture
    4,822 Super User 2026 Season 1 on at

    @Anonymous 

     

    In this patch, the first Time out, how did you create this, or what does it contain? It should be the ID of a record that You try to update. Does it store the ID?

     

    Patch(E_Visitor_log2, 
     Time_Out, //<----- What is this and what data it contains
    
     {
     Time_Out: Now()
     }
    )

     

     

  • jadhav_ravi_oo7 Profile Picture
    276 on at

    Patch(E_Visitor_log2,Time_Out, {Time_Out: Now()});ViewForm(Form1);Navigate(DashboardScreen)

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    How did I create "Time_Out"? I created it in a Form template which captured the format from the appropriate SharePoint List as shown below:

    tonycrook_0-1695232555309.png

    Are you suggesting that the second parameter of my patch function should be "Time_Out_DataCard1" or "Time_Out.Selected"?

  • SebS Profile Picture
    4,822 Super User 2026 Season 1 on at

    @Anonymous 

     

    Yes it should pass the record ID right now the patch do not know where to patch it or what you try to do in my opinion.

     

    Best approach is add it to Update property of the DataCard TimeOut and replace TimeOut with ThisItem but every time someone create new record or update this record you get the Time Out update 

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 883

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 477

Last 30 days Overall leaderboard