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_incidentSmiley Very HappyateValue5.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!

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!

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

Top Community Contributors for September  2019

Top Community Contributors for September 2019 🎉🎉

Let's thank our top community contributors

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 264 members 4,352 guests
Please welcome our newest community members: