cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

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
Highlighted

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
Highlighted
Power Apps
Power Apps

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.

 

 

Highlighted

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,440)