cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Rpeters1977
Level: Powered On

Patch function to write date time field back to SharePoint

I have the following problem i want to save the date and time back to SharePoint. What I have is this:

Tijdstip_x0020_incident:DateValue5.SelectedDate+Time(Value(HourValue5.Selected);0;0) What do i have to do to get the Hour value in with it saying not a number or invalid argument type.

 

The Hour field is a datacard field from SharePoint: image.png

 

Any tips are welcome!

1 ACCEPTED SOLUTION

Accepted Solutions
Rpeters1977
Level: Powered On

Re: Patch function to write date time field back to SharePoint

Thanks you for the reply!

 

 

Just needed to add Tijdstip_x0020_incident: DateValue5.SelectedDate+Time(Value(HourValue5.Selected.Value);0;0)

 

Without this it will not work!

View solution in original post

2 REPLIES 2
PowerApps Staff AndyPennell
PowerApps Staff

Re: Patch function to write date time field back to SharePoint

I would recommend using DateAdd with the new Hours option eg

DateAdd(Value5.SelectedDate,Value(HourValue5.Selected),Hours)

I wrapped HouseValue5.Selected in Value as I am gussing its a string, not a number.

 

 

Rpeters1977
Level: Powered On

Re: Patch function to write date time field back to SharePoint

Thanks you for the reply!

 

 

Just needed to add Tijdstip_x0020_incident: DateValue5.SelectedDate+Time(Value(HourValue5.Selected.Value);0;0)

 

Without this it will not work!

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,370)