cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Start and end times when creating calendar event

I am trying to create 8 hour long event (on O365 calendar).

 

Get model from "Block my calendar for 1 hour" example. When i run it, it works fine. creates 1 hour event. But when i copy paste same values to my own flow:

 

event end time: @{addhours(utcnow(),1)}

event start time: @{utcnow()}

 

it just create 30min event starting from nearest hour...

 

Is it bug or i am doing something wrong?

 

When i run example flow those utctimes are extracted on toplevel ("Syötteet") part also. In my flow they are not.

 

Näyttökuva 2016-12-15 kello 20.10.43.png

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous,

 

Thanks for posting this.

The input value of the StartTime and the Endtime only accept the date string without the double quote.

Although the utcnow() Function works in your test, but the value is not transferred successfully to the Calendar API.

As the time with double quote would not be considered as a wrong value, the event would create a auto-generated time range (half an hour by default), and begins on the hour.

 

Based on my testing, we could take use of the following ways to make this work:

First and the easy one, just input the date format as shown below:

42.PNG

41.PNG

 

Another way is to use the Compose action, we need to get the time string first from the utcnow() function:

45.PNG

43.PNG

44.PNG

 

 

Hope the information above would be helpful.

Regards

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Correct syntax seems to be:

 

event end time: "@{addhours(utcnow(),1)}"

event start time: "@{utcnow()}"

Anonymous
Not applicable

Nope. Now it pareses dates on "Syötteet" part, but still default times on "Tulosteet" part.

 

Näyttökuva 2016-12-15 kello 20.29.56.png

Hi @Anonymous,

 

Thanks for posting this.

The input value of the StartTime and the Endtime only accept the date string without the double quote.

Although the utcnow() Function works in your test, but the value is not transferred successfully to the Calendar API.

As the time with double quote would not be considered as a wrong value, the event would create a auto-generated time range (half an hour by default), and begins on the hour.

 

Based on my testing, we could take use of the following ways to make this work:

First and the easy one, just input the date format as shown below:

42.PNG

41.PNG

 

Another way is to use the Compose action, we need to get the time string first from the utcnow() function:

45.PNG

43.PNG

44.PNG

 

 

Hope the information above would be helpful.

Regards

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,979)