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

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate - Autom...
Power Automate
Unanswered

Power Automate - Automatize e-mails - Contracts end dates

(1) ShareShare
ReportReport
Posted on by 18

Hello, I'm a new user in Power Automate, I have one list on SharePoint where I have the start date and end date of one Contract. I would like to automate. Send one automatic e-mail 30 days before the end date asking to the manager if the contract will be reniew or not.

Categories:
I have the same question (0)
  • Verified answer
    Rhiassuring Profile Picture
    8,690 Moderator on at
    Re: Power Automate - Automatize e-mails - Contracts end dates

    Hi there, 

    I will assume your SharePoint list has these fields:

     

    ContractTitle - ContractContact - StartDate - EndDate

     

    Here are the steps you need to take:

     

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

    Rhiassuring_0-1649910653108.png

     


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

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

    ⚠️If you've never added in this kind of filter before, here's how: 
    • Type in EndDate 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(),30),'M/dd/yyyy'). Press "OK"

    ℹ️ 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 30 days from now?". Once we have that, we need to change the date into a format that SharePoint will understand.


    Step 3 - Everything else is honestly magic - add in a "Send an Email" action. Click in the "To" field and click on "Add Dynamic Content" from the bottom right hand side of the field. All the email addresses available from your list will be there! Click on ContractContact Email. You will see the email action automatically turn into an "Apply to each", which just means - hey, if we check Today + 30 and there's more than one contract with an End Date of that, we're going to email for each one.

    Step 4 - Type out your email body, and, you're done! And you can use variables from the rest of your Get Item options -- the "Apply to each" that automatically applied makes it so it will always know which contract to pull the information from.

     

    In the end, we have something like this:

     

    Rhiassuring_1-1649911539691.png

    Let me know if you have any questions.

     

    Cheers,

     

    Rhia

  • Verified answer
    Ana123 Profile Picture
    18 on at
    Re: Power Automate - Automatize e-mails - Contracts end dates

    Thank you so much its working 🙂

  • kdavis Profile Picture
    9 on at
    Power Automate - Automatize e-mails - Contracts end dates
    Hi Rhia,
     
    The Rhiassuring_0-1649910653108.png photo no longer loads the visual for the scheduled trigger. Would you be able to upload it again? Thank you!

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 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard