Skip to main content

Notifications

Power Automate - General Discussion
Answered

Event Creation

(0) ShareShare
ReportReport
Posted on 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
    DamoBird365 8,942 on at
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,508

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,839

Leaderboard