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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Send email after 30 days?
Power Automate
Unanswered

Send email after 30 days?

(0) ShareShare
ReportReport
Posted on by 145

Hi, I'm new to writing flows and I have my current approval flow working but I need to add a follow up email based on the expiration date. So, I have emails going on for approval and once it is approved. The document expires 30 days after it is posted and I want to send an email to the creator to take the document down on the expiration date. So far, it sends the email immediately. Does anyone know how I can send the last email 30 days after the flow is created?

 

Thanks,

Kathy

 

Categories:
I have the same question (0)
  • vecerpa Profile Picture
    786 on at

    Hi @kmason,

     

    There is action in Flow called Delay:

    Flow_Delay.PNG

     

    There is also described how to use it - https://docs.microsoft.com/en-us/flow/run-scheduled-tasks.

    P.

  • kmason Profile Picture
    145 on at

    Thanks @vecerpa I tried that but it wants a specific day and I want the email to run on the expiration date I have in my list. Any thoughts on how to use it with that?

     

    Thanks!

  • vecerpa Profile Picture
    786 on at

    Hi @kmason,

     

    Please see Flow example below on screen:

    Flow_Delay1.PNG

     

    For notification I used this Expression

     

    formatDateTime(addDays(triggerBody()?['Created'],30),'dd/MM/yyyy')

    And for delay I added 30 days to Created metadato of added doc in doc library in sharepoint for example. I can pick another source for example if you store it in excel, list, whatever.

     

    addDays(triggerBody()?['Created'],30)

    Hope this will help you.

    P.

     

     

     

     

  • kmason Profile Picture
    145 on at

    Thanks, I think I need more help with the expressions. When I typed in the expression you suggested I got a message saying it didn't exist. or it wasn't a valid expression.  I think it is because of my lack of knowledge in this area. I'm learning all of this on the fly, on my own by watching videos and reading blogs. My company isn't big on getting us training unfortunately.

     

  • vecerpa Profile Picture
    786 on at

    Hi, can you post at least print screen of your Flow?

    P.

  • kmason Profile Picture
    145 on at

    Set Delay part of flow.png

  • kmason Profile Picture
    145 on at

    It is an approval Flow and this is the second I'm having trouble with. So after an item is approved, it is only good for 30 days and then I need to send an email out to the creator telling them the item has expired.

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @kmason,

     

    Is the document uploaded into a SharePoint library?

    Could you please share a full screenshot of your flow's configuration?

    Do you want to send an expiration email based on the Expiration date property or after 30 days?

     

    If you only want to send an expiration email after 30 days, I agree with @vecerpa's thought alomost. But if you want to send an expiration email based on the Expiration date property, please take a try with the following workaround:

     

    I have created a custom column called Expiration date in my SharePoint libray, which is a Date type column. The data structure of my SharePoint library as below:18.JPG

    My flow's configuration as below:19.JPG

     

    Within "Delay Until" action, select Timestamp field. Within right panel, click "Expression" tab, then type the following formula within formula box:

    formatDateTime(triggerBody()?['Expiration_x0020_date0'],'yyyy-MM-ddTHH:mm:ssZ')

    And last, click "OK" button.

     

    The flow works successfully as below:20.JPG

     

     

    More details about the WDL expression in Microsoft Flow, please check the following article:

    https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language

     

    Best regards,

    Kris

     

     

  • kmason Profile Picture
    145 on at

    Yes, I have a column in my SharePoint list for Expiration Date. I am going to try your fix and see if I can get it to work. I will let you know how it goes. Thanks for all y our help with this it is much appreciated. This is the final piece I need to get worked out before I can release this Flow to my organization so you are helping me out a great deal.

     

    I will follow up after I try this....

  • kmason Profile Picture
    145 on at

    Okay @vecerpa I tried that and I get an error when I try to use the formatDateTime function. 

     

    format error.PNG

    I must be doing something wrong. Any help is appreciated.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 262 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 227

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard