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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Converting ics file to...
Power Automate
Unanswered

Converting ics file to calendar item

(0) ShareShare
ReportReport
Posted on by 2

I'm trying to convert an ICS file attached in a mail to a google calendar item. I was able to extract the text from the invite in the following format:

 

 

BEGIN:VCALENDAR
PRODID:-//DigiFit//Gym//EN
METHOD:PUBLISH
VERSION:2.0
BEGIN:VEVENT
SUMMARY:Summary
UID:******@********.com
STATUS:CONFIRMED
DTSTART:20220831T194500
DTEND:20220831T204500
DESCRIPTION:Description
LOCATION:location
END:VEVENT
END:VCALENDAR

 

 

Raw output:

"BEGIN:VCALENDAR\nPRODID:-//DigiFit//Gym//EN\nMETHOD:PUBLISH\nVERSION:2.0\nBEGIN:VEVENT\nSUMMARY:Summary\nUID:******@********.com\nSTATUS:CONFIRMED\nDTSTART:20220831T194500\nDTEND:20220831T204500\nDESCRIPTION:Description\nLOCATION:location\nEND:VEVENT\nEND:VCALENDAR"

 

Basically I want to extract the DTStart DTEnd and description, I already managed to split the text into a string array using the "

Compose CRLF: decodeUriComponent('%0A')" 
Compose split(variables('lines'), outputs('CRLF'))
 
Apparently the \n split was a bit difficult so I used the option above. I now want to extract the 3 fields, I'm hoping to find a clever way to to this instead of looping all the lines and try to extract it via a substring() in combination with the "indexof(). to find the ";"
 
Categories:
I have the same question (0)
  • vvvvd Profile Picture
    2 on at

    Has anyone have a clever idea?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard