Hello,
very new with flow and automation.
I want to create a google calendar event using the information in notification email body or subject.
this is the kind of email i would get. the invitee will be different every time. and the invitee email. also the date and time.
all i want to do is a way to extract the date and time so i can plug it in to the workflow below. End time will always be 30 minutes after start time. i can do that by add minutes. but figuring out start time seems impossible.
please, any help is greatly appreciated!!!
-Eranga
@jinivthakkar I get this error for compose 2.
see below for my updated flow. i fixed compose 1 per your direction.
@EFernando Compose 1 should be body from step 1 when an email arrives.
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
@EFernando what is the action before Compose, please can you share screenshot with that action ?
@jinivthakkar thank you very much for taking time to help me.
the only step that i can't figure out is Compose 2
Mine looks like this. and mine is an expression instead of an output.
Please advise. thank you.
@EFernando here is how I did this, Compose step 1 has the raw output you shared
Compose 4 - Event start date time
Compose 5 - Event end date time
Compose 6 - Subject
The same has been passed to create event
Expressions used are as below
outputs('Compose')['body'] //Compose 2
split(outputs('Compose_2'),' - ') //Compose 3
formatDateTime(outputs('Compose_3')[1],'yyyy-MM-dd hh:mm tt') //Compose 4
addToTime(outputs('Compose_4'),30,'Minute','yyyy-MM-dd hh:mm tt') //Compose 5
outputs('Compose_3')[0] //Compose 6
Hope this helps.
--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.
@jinivthakkar not sure why my other comment got deleted
Raw input for subject -
@jinivthakkar see below for both conversions of subject and body. i did them both in separate steps.
Let me know if there's a different way to see the output
raw input for subject -
raw output for subject -
raw input for body -
raw output for body -