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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard