Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

create calendar event in specified persons outlook calendar 7 days before date in a sharepoint list

(0) ShareShare
ReportReport
Posted on by 145

Hello Flow Experts!

 

I have a Sharepoint list that contains a list of classes with start and end dates.  I want to have an email with ical event sent to the admin specified in a field 7 days before the start date field.  I cannot find a template to use.  Has anyone done this or Have any ideas on how to trigger this?  A standard time of 9am is fine as long as it sends 7 days before the date specified.

  • Rhiassuring Profile Picture
    8,688 Super User 2025 Season 1 on at
    Re: create calendar event in specified persons outlook calendar 7 days before date in a sharepoint list

    Hi there,

    I will assume your SharePoint list has these fields:

     

    ClassTitle - ClassAdmin- StartDate - EndDate

     

    Here are the steps you need to take:

     

    Step 1 - Use a scheduled trigger that will run once a day. 

    Rhiassuring_1-1649918863133.png

     

    Step 2 - Use a "Get Items" action and set the filter to:  StartDate eq 

    formatDateTime(addDays(utcNow(),7),'M/dd/yyyy')

     

    If you've never added in this kind of filter before, here's how: 
    • Type in StartDate eq ''
    • Click between the two 's you've typed, then click on Expression on the box to the left (a tab). Paste in the formula formatDateTime(addDays(utcNow(),7),'M/dd/yyyy'). Press "OK"
    Rhiassuring_5-1649919316577.png

     

    ℹ️ What is the formula doing? The formula is taking "utcNow" to identify "hey, what day is it?". Working our way out of the brackets, the next thing we're doing is identifying "okay - we now know what "today" is - what is 7 days from now?". Once we have that, we need to change the date into a format that SharePoint will understand.  (NOTE: UTCNow is a different timezone - so you can either convert it using a different action, or, you can just tweak the 7 to an 8 or a 6 depending on your needs.)

     

    Step 3 - Use the "Create Event" action and add in your values from "Get Items" - this will turn it into an "Apply to Each" which means it will loop through all events that meet the criteria (StartDate = in 7 days from now). You should be able populate the required attendees with your ClassAdmin Email.

     

    Rhiassuring_6-1649919348650.png

     

     

     

    Let me know if this helps!

     

    Cheers,

     

    Rhia

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

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!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1