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 / Flow recurrence - Calc...
Power Automate
Unanswered

Flow recurrence - Calculated time before end of month

(0) ShareShare
ReportReport
Posted on by

I am trying to a build a flow that sends an email one day before the end of the month and 7 days before the end of the month (calculating those days each month). I have no clue how to write the expression for that and recurrence trigger does not seem to provide me that optionr. Could someone help me write that expression or show me exactly how to set that up? Thank you so much.

Categories:
I have the same question (0)
  • RezaDorrani Profile Picture
    12,143 on at
    Re: Flow recurrence - Calculated time before end of month

    @Anonymous 

     

    for the Recurrence trigger

    go to settings and add the following as a trigger condition

     

    @or(equals(formatDateTime( addDays(startOfMonth(addDays(startOfMonth(utcNow()),31)),-1),'MM-dd-yyyy'),formatDateTime( utcnow(),'MM-dd-yyyy')),equals(formatDateTime( addDays(startOfMonth(addDays(startOfMonth(utcNow()),31)),-8),'MM-dd-yyyy'),formatDateTime( utcnow(),'MM-dd-yyyy')))

     

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • Community Power Platform Member Profile Picture
    on at
    Re: Flow recurrence - Calculated time before end of month

    Thank you for your quick reply!

     

    If i was running this on two separate flows (one for 7 days before and 1 a day before) are these the correct expressions? They each send a unique email.

     

    1 day before

    @if(formatDateTime( addDays(startOfMonth(addDays(startOfMonth(utcNow()),31)),-1),'MM-dd-yyyy'),formatDateTime( utcnow(),'MM-dd-yyyy'))

     

    7 days before

    @if(formatDateTime( addDays(startOfMonth(addDays(startOfMonth(utcNow()),31)),-8),'MM-dd-yyyy'),formatDateTime( utcnow(),'MM-dd-yyyy'))

     

    I got this error when I tried to run them "Cannot read property 'properties' of undefined". And what is the best way to test these so I know they will run on specific dates? (Or do I have to wait until those days come around to see if it works?)

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