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 / Run Flow on the last S...
Power Automate
Unanswered

Run Flow on the last Sunday each month

(0) ShareShare
ReportReport
Posted on by

Hi, I have a flow which I want to schedule to run on the last Sunday of each month. What is the best method to use to achieve this?

Categories:
I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    @Anonymous Hi,

     

    The only thing I can think of is to run the flow each week on Sunday and then use a number of conditions to check if it is the last Sunday of that month. Then put any actions you wish to perfom under this condition.

     

    For example you could do the following

    2019-04-15_0927.png

     

    Formula for 'Current Day of Month' 

    int(dayOfMonth(utcNow()))

    Formula for ' Current Month'

    int(substring(utcNow(),5,2))

    Then use a condition to see if the current month has 30 days. If yes, then use a second condition to see if the current date is the 24th or later in the month (the last sunday of a month with 30 days must be on the 24th or later)

     

    2019-04-15_0932.png

     

    **Correction** the condition 'not equals to: 02' should be 'not equals to: 2' as the value is converted to int there is no leading 0

     

    You can then repeat this condition for months that have 31 days and for feburary for 28 days. I recommend putting each of these 3 master conditions in a linear fashion rather than inside each other to make for a cleaner flow.

     

    For months with 31 days, the last sunday should be at least the 25th of the month and for feburary it should be at least the 22nd of the month.

     

    Hope this helps,

    Sam

  • Community Power Platform Member Profile Picture
    on at

    Thank you @Anonymous this certainly has put me on the right track and from my testing so far it works. Appreciate the detailed post, well done.

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard