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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow to Email A weekly...
Power Automate
Unanswered

Flow to Email A weekly SharePoint Calendar Events

(0) ShareShare
ReportReport
Posted on by

Hello - I am working on building a flow that will generate emails of the next 8 days of events scheduled every Monday at 0700.  I'd like the email to list the Event Title (possible link to the Sharepoint event page, Date, and Start time. 

I've been following https://natechamberlain.com/2019/12/22/send-a-weekly-email-of-upcoming-events-with-add-to-calendar-ics-download-links-using-power-automate-flow/ but I'm stuck the Start Time converting from UTC. I can't get the Hyperlinks to activate in the Events and sorting for Date is completely wrong. 

 

 

Categories:
I have the same question (0)
  • v-duann-msft Profile Picture
    on at

    Hi @Anonymous 

     

    Thank you for posting.

     

    According to your description, you are trying to get calendar event from SharePoint and sending results via email. But currently stuck the start time and hyperlinks. If any misunderstood, please kindly let me know.

     

    I tried the article you provided and succeeded at the first time. The article is amazing and no problem at all.

     

    Here is my flow and details for your reference:

    v-duann-msft_0-1614829700095.png

     

    Related expression(Please pay attention to the bolded part):

    Date: formatDateTime(item()?['EventDate'],'yyyy-MM-dd')

     

    Save: concat('<a href="https://hanxia.sharepoint.com/sites/Annas/_vti_bin/owssvr.dll?CS=109&Cmd=Display&List=%7B0D15ADF9-3F36-4AD5-8930-6B5FFA416A8E%7D&CacheControl=1&ID=',item()?['ID'],'&Using=event.ics">Add to my calendar</a>')

     

    In the 'save' expression, we should update the link using our SharePoint URL and list ID.

    v-duann-msft_1-1614829700101.png

     

    You could refer this link as below:

    Creating iCal (.ics) calendar item links with a workflow (Power Automate or SharePoint Designer) | NateChamberlain.com

     

    Input of compose: replace(replace(replace(replace(replace(body('Create_HTML_table'),'&lt;','<'),'&gt;','>'),'&amp;','&'),'<table>','<table border="3" bgcolor="ffffff">'),'"','"')

    In original article, they lost one ‘replace’ formula by mistake.

     

    Once completed, here is the result:

    v-duann-msft_2-1614829700104.png

     

     

    v-duann-msft_3-1614829700105.png

     

    Hope the content above may help you.

     

    Thanks

    Anna

  • Community Power Platform Member Profile Picture
    on at

    @v-duann-msft  Thank you.

    I don't have any issue with the tutorial. I'm trying to use that as a jumping-off point. (this is my first Flow). I am able to generate the email with events for the next 8 days. Though it would appear that the email is sorting by Creation Date and not the date of the event. The 'Add to my Calendar' option works, but all the options are the same and go to an error page. 

    craighamill_0-1614832648229.png

    I would also like to add into the table the Start Time of the events but that is in UTC time. I'd only need to short time (9:30pm) 

    I'd also like the Event to be clickable to link to the actual event for more information. 

    craighamill_1-1614832832293.png

    I'd be open to scraping the tutorial completely and building something from scratch, but I'm a bit lost. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard