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:
I want the event to be 1 hour long, so my end time expression is set to the following:
Hi @Cinna103 ,
First way:
Please make sure that the time zone of the calendar is the same as the time zone of 【Create event】
The second way:
Use addHours() to make up for the time difference.
Best Regards
Cheng Feng
Hi @v-chengfen-msft, this worked, but it made the event an all day event.
When I changed the formula from:
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
Michael E. Gernaey
566
Super User 2025 Season 1
David_MA
516
Super User 2025 Season 1
stampcoin
492