Skip to main content
Community site session details

Community site session details

Session Id : 3g7xRJ6vzUe+O1Au1GyZaN
Power Automate - Building Flows
Unanswered

Create or Update Calendar Event from a .ics Email Attachment

Like (2) ShareShare
ReportReport
Posted on 6 Dec 2023 17:27:57 by 4

I need help completing a flow that can create or update a calendar event from the content of a .ics email attachment.

This is what I have so far: When a new email arrives, for each attachment, if the attachment ends with .ics, get the attachment and convert the contentBytes of the attachment to a string.

This is how far I’ve gotten with the help of PowerAutomate AI and this previous question.

 

compose code action to convert attachment to string:

 

@base64ToString(outputs_Get_Attachment?['body']?['contentBytes']))

 



Screenshot 2023-12-06 at 8.47.39 AM.png

 



For next steps, I’d like to create a calendar event using the title of the .ics in the string output. I imagine I could use a compose action and a string function to create an output that can be used as a parameter for the title of a create event action. Would appreciate guidance on what the code in compose action should be as this is my first time using Power Automate and I’m not very code savvy.

There could also be scenarios where I need to update a calendar event. One thing I’m thinking is to use an identifier from .ics to check if a previous calendar event exists. I’m unsure of how this would work (i.e always save the UID property of a .ics in the body of a created event so that it can be compared against later? Or easier but potentially buggy: compare the title of current .ics with the title of another event in the same week?). Any guidance here to would be apperciate

Thanks! Also attaching an example .ics file for visual reference
Screenshot 2023-12-06 at 9.26.23 AM.png

 

 

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete