Skip to main content

Notifications

Community site session details

Community site session details

Session Id : MjZO+Ijhc/xQQydLbUgdSi
Power Automate - General Discussion
Answered

Event Creation

Like (0) ShareShare
ReportReport
Posted on 7 Apr 2021 23:54:48 by 89

Hello I'm trying to create an event in the calendar with power automate as part of a flow and should be schedule for next day and have a duration of an hour.

 

I'm using the expressions :

  •  addDays(utcNow(),1) for the start time and
  • addDays(addHours(),1) for end time
But I believe that is obvious that I'm not doing it correctly. 
 
More than appreciated any help
 

 

  • Verified answer
    DamoBird365 Profile Picture
    8,942 Microsoft Employee on 08 Apr 2021 at 19:12:49
    Re: Event Creation

    Hi @crirojsab 

     

    I've done a blog on dates/times here https://damobird365.birdhoose.co.uk/2021/04/02/formatdatetime-and-formatting-a-string-date-in-power-automate/

     

    Your 2nd expression is invalid as addhours() is not a datetime addDays(addHours(),1) 

     

    You could consinder using 

    addhours(addDays(utcNow(),1),1)
     
    DamoBird365_0-1617909072850.png

     

    Bear in mind that utcnow() is the date/time that the expression is called and the start time and end time will vary by a split second.

     

    I ran this flow at 19:10 on 8th April.

     

    DamoBird365_1-1617909153756.png

     

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

     

     

     

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,369 Most Valuable Professional

Leaderboard
Loading started