Skip to main content

Notifications

Community site session details

Community site session details

Session Id : q8Eys67oUWdnvpduALYkEo
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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 123

#2
David_MA Profile Picture

David_MA 104 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 90 Super User 2025 Season 1

Overall leaderboard
Loading started