Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Create event (V4) Date time format

(1) ShareShare
ReportReport
Posted on by 38

alie4hunt_2-1719970455754.png

alie4hunt_3-1719970584042.png

 

 

alie4hunt_0-1719970432044.png

alie4hunt_1-1719970439846.png
I'm trying to set up that when my approval is granted, SharePoint will receive the latest status update. Additionally, it should create an event in Outlook to let others know that this time slot is already booked. I'm not sure if my parameters are correct (I suspect my date string format might be wrong). Should I be using "update event" instead of "create event"?

 

  • alie4hunt Profile Picture
    38 on at
    Re: Create event (V4) Date time format

    Hi @v-yetonggu-msft ,

     

    Really appreciate, it works now !!! Was my mistake putting two same formulas. 

  • v-yetonggu-msft Profile Picture
    on at
    Re: Create event (V4) Date time format

    Hi @alie4hunt ,

    Please check whether the formulas entered for StartDate and EndDate in your create event are respectively:

    convertTimeZone(outputs('Update_item')?['body/StartDate'],'UTC','Singapore Standard Time','yyyy-MM-dd HH:mm:ss')

    convertTimeZone(outputs('Update_item')?['body/EndDate'],'UTC','Singapore Standard Time','yyyy-MM-dd HH:mm:ss')

    I'm guessing you've written the same formula.

     

    Best Regards,

    Sunshine Gu

  • alie4hunt Profile Picture
    38 on at
    Re: Create event (V4) Date time format

    alie4hunt_0-1719977252681.png

    alie4hunt_1-1719977300552.png

     


    Hi @v-yetonggu-msft ,
    I create 22 for the start date and end dates on 26, in SharePoint and the date print out in the email body shows the correct date, just the booking date are not in the correct one.

  • v-yetonggu-msft Profile Picture
    on at
    Re: Create event (V4) Date time format

    Hi @alie4hunt ,

    Please check that the start and end dates in your create event are the same day.

     

    Best Regards,

    Sunshine Gu

  • alie4hunt Profile Picture
    38 on at
    Re: Create event (V4) Date time format

    alie4hunt_0-1719975955763.png

    alie4hunt_1-1719975967602.png

     

    Hi @v-yetonggu-msft ,

    It actually works and is able to update to Outlook, but why does it only create a single column instead of spanning from the start date to the end date?

  • Verified answer
    v-yetonggu-msft Profile Picture
    on at
    Re: Create event (V4) Date time format

    Hi @alie4hunt ,

    Please try both expressions again:

    convertTimeZone(outputs('Update_item')?['body/StartDate'],'UTC','Singapore Standard Time','yyyy-MM-dd HH:mm:ss')

    convertTimeZone(outputs('Update_item')?['body/EndDate'],'UTC','Singapore Standard Time','yyyy-MM-dd HH:mm:ss')

     

    Best Regards,

    Sunshine Gu

  • alie4hunt Profile Picture
    38 on at
    Re: Create event (V4) Date time format

    alie4hunt_0-1719974102745.png

    Hi @v-yetonggu-msft , 

     

    The date and time seems works in this format, but the error showing null when testing.

  • v-yetonggu-msft Profile Picture
    on at
    Re: Create event (V4) Date time format

    Hi @alie4hunt ,

    There is a problem with Start_Date and End_Date field references, please try this expression again:

    convertTimeZone(outputs('Update_item')?['body/Start_Date'],'UTC','Singapore Standard Time','yyyy-MM-dd HH:mm:ss')

    convertTimeZone(outputs('Update_item')?['body/End_Date'],'UTC','Singapore Standard Time','yyyy-MM-dd HH:mm:ss')

     

    Best Regards,

    Sunshine Gu

  • alie4hunt Profile Picture
    38 on at
    Re: Create event (V4) Date time format

    Hi @v-yetonggu-msft ,

    alie4hunt_0-1719972055561.png

    Still the same after changing the expression

  • v-yetonggu-msft Profile Picture
    on at
    Re: Create event (V4) Date time format

    Hi @alie4hunt ,

    Please try this expression:

     

    convertTimeZone(outputs('Update_item')?['body/Start_Date'],'UTC','Singapore Standard Time','yyyy-MM-dd HH:mm:ss')
    convertTimeZone(outputs('Update_item')?['body/End_Date'],'UTC','Singapore Standard Time','yyyy-MM-dd HH:mm:ss')

     

     Best Regards,

    Sunshine Gu

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >