Hi,
This is getting very interesting and challenging. I built a flow, using Utility - Extract Text between Values.
Idea is to grab first of many or only date and time from the email body, in order to use those as date and starting time for a calendar event.
Only start time and date matters, i can add +2 hours to calendar events end time.
At this stage i have focused only to solve this date and time issue.
Challenge is to use local formatting, that is commonly used here in Finland.
Examples, Maintenance notification (date an time):
19.10.2024 20:00-22:00
Huoltokatko tapahtuu 19.10.2024 20:00 ja 22:00 välisenä aikana. (Maintenance occurs 19.10.2024 between 20:00 and 22:00 hours)
Huoltokatko alkaa 19.10.2024 20:00.
Same thing can be written in many ways. And the format differs per client/customer.
Tested this with an email with only 1 row of text.
HTML Body (partial):
style=\"font-family:Aptos,Aptos_EmbeddedFont,Aptos_MSFontService,Calibri,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)\">19.10.2024 20:00</div><div
This might be something that has been previously overlooked developing this platform. This might be unsolvable.
Maybe somehow i can extract date and time from "\">19.10.2024 20:00</div>" , but that only works, if i am seraching for DD:MM:YYYY HH:MM.
I have tried multiple approaches and all have failed.
Flow, using Utility - Extract Text between Values.
Flow test results:
When a new email arrives (V3) OK
Initialize variable OK
Utility - Extract Text between Values OK
Extract Date, Error
Extract Time, skipped
Output Date, skipped
Output Time, skipped
Config