
Announcements
Hi all, first time using Flow to build my own specific flow. It's not going very well!
I want to achieve the following:
- Receive email with particular text in the subject (O365 Outlook)
- Create calendar event that starts at the time the email was received, and ends 4 hours later (O365 Outlook)
I've spent a long time looking for solutions to this and haven't been able to find anything. Here's what I'm doing:
[When a new email arrives (V3)
Folder: Inbox
Subject Filter: [required text goes here]
[Create event (V4)]
Calendar ID: Calendar
Subject: [dynamic content for email subject]
Start time: [dynamic content for Email Received time]
End time: [dynamic content for Email Received time again]
Time zone: My time zone (UTC+00:00 Dublin, Edinburgh, Lisbon, London)
Using these values gives the following error message when I try to save:
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/receivedDateTime']"' in path 'item/start' with type/format 'String/date-time' is not convertible to type/format 'String/date-no-tz'.'.
I then tried something similar with a pushbutton flow, which worked great:
Button
Create event (V4)
Calendar ID: Calendar
Subject: Test
Start time: [Timestamp]
End time: [Timestamp]
Timezone: GMT (as above)
This worked without any issues.
Following a bit of Googling on the "no-tz" error above, I found several suggestions that the code should be wrapped in "convertToUtc" info. So, I went back to the version that relies on email, and instead of having the start and end times be the dynamic content for Received Time, put the following in as an expression:
Hi @Anonymous ,
Can you try using 2 Variables or 2 compose actions to get the Date/time for start date and endDate. Design something like this-
The compose or string variable you will use here, will help you understand what you are receiving as the result. once you are sure, you can remove those and utilize the Date time connector output to do rest of the work for creating event in calendar.
Let us know if this helps.