Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

How to create event in outlook v4 when an list item is created

(0) ShareShare
ReportReport
Posted on by 26

Hello, 

 

I'm trying to build a flow that creates an outlook event when an item is created, but I keep running into this error: 

Flow save failed with code 'OpenApiOperationParameterValidationFailed' and message 'Input parameter 'item' validation failed in workflow operation 'Create_event_(V4)': The parameter with value '"@triggerOutputs()?['body/DraftDueBy']"' in path 'item/start' with type/format 'String/date-time' is not convertible to type/format 'String/date-no-tz'.'.

 

It seems that it's related to the start/end time format - does anyone know how to adjust the expression or does anyone have another way of creating this flow? 

 

my flow: 

Cinna103_2-1675127718645.png

I want the event to be 1 hour long, so my end time expression is set to the following: 

addHours(item()?['DraftsDueBy'],1,'yyyy-MM-dd')
 
 
Thank you! 
  • v-chengfen-msft Profile Picture
    on at
    Re: How to create event in outlook v4 when an list item is created

    Hi @Cinna103 ,

    First way:
    Please make sure that the time zone of the calendar is the same as the time zone of 【Create event】

     

    vchengfenmsft_0-1675142825244.png

     

    The second way:
    Use addHours() to make up for the time difference.

     

    Best Regards

    Cheng Feng

  • CU31081919-0 Profile Picture
    26 on at
    Re: How to create event in outlook v4 when an list item is created

    Hi @v-chengfen-msft, this worked, but it made the event an all day event.

     

    When I changed the formula from:

    formatDateTime(triggerOutputs()?['body/DraftDueBy'],'yyyy-MM-dd') to 
    formatDateTime(triggerOutputs()?['body/DraftDueBy'],'yyyy-MM-ddThh:mm'), it created the event but it was in the wrong timezone. 
     
    1) flow
    Cinna103_0-1675136422686.png
    Start time: 
    formatDateTime(triggerOutputs()?['body/DraftDueBy'],'yyyy-MM-ddThh:mm')
     
    End time: 
    addHours(triggerOutputs()?['body/DraftDueBy'],1,'yyyy-MM-ddThh:mm')
     
    2) new item
    Cinna103_1-1675136477131.png
    3) event created, but wrong timezone 
    Cinna103_2-1675136509541.png

     

  • v-chengfen-msft Profile Picture
    on at
    Re: How to create event in outlook v4 when an list item is created

    Hi @Cinna103 ,

    Judging from the screenshots you provided, the cause of this problem is:
    1. Starttime needs to format the date

     

    Please try:

    Start time:

    formatDateTime(triggerOutputs()?['body/Dueby'],'yyyy-MM-dd')

    triggerOutputs()?['body/Dueby'] is when the trigger returns

    end time:

    addHours(triggerOutputs()?['body/Dueby'],1,'yyyy-MM-dd')

     

     

    Best Regards

    Cheng Feng

     

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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492