web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to create event in...
Power Automate
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! 
Categories:
I have the same question (0)
  • v-chengfen-msft Profile Picture
    Microsoft Employee on at

    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

     

  • CU31081919-0 Profile Picture
    26 on at

    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
    Microsoft Employee on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 1,027

#2
Valantis Profile Picture

Valantis 809

#3
Haque Profile Picture

Haque 645

Last 30 days Overall leaderboard