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 / How to create a flow t...
Power Automate
Answered

How to create a flow that runs always in the middle and at the end of month, like on the 15, and at the end, 30 or 31 depends on the month

(0) ShareShare
ReportReport
Posted on by 13

Hello everyone,

I have a flow that I need to trigger it twice a month, in the middle and at the end.

The problem is that if I set the recurrence to 15 days, it runs every 15 days, which does not work in my case, like this month is february it ends on 28, 15 days from Feb 15 takes me to March instead of the end of February.

 

Is there a way to tell automate to run on the 15th and the end of every month? Whether it's 28,30 or 31 ?

 

Thanks.

Categories:
I have the same question (0)
  • Haritha222 Profile Picture
    14 on at

    Hi,

     

    Step 1: go to scheduled cloud flow..

    Step 2:

    hari123_0-1676278898989.png

    Step 3: select repeat every 15 days run a flow.

     

    Please try this.

     

    Regards

    Haritha

     

  • esfeir4 Profile Picture
    13 on at

    The problem is that if I set the recurrence to 15 days, it runs every 15 days, which does not work in my case, like this month is february it ends on 28, 15 days from Feb 15 takes me to March instead of the end of February.

  • Haritha222 Profile Picture
    113 on at

    Hi,

     

    https://nebulaaitsolutions.com/how-to-set-scheduled-flow-to-run-on-specific-dates-of-a-month/

     Please check above link.

     

    Regards

    Haritha

  • Verified answer
    v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @esfeir4 ,

    You can get the first day of the next month and subtract one day to get the last day of the month.
    Then set the condition in the trigger condition, if today is the 15th or today is the last day of the month, run the flow.

    Please try:

     

     

    @or(equals(forMatDateTime(utcNow(),'dd'),'15'),equals(formatDateTime(addDays(startOfMonth(addToTime(utcNow(),1,'Month')),-1),'dd'),forMatDateTime(utcNow(),'dd')))

     

     

    vdezhilimsft_1-1676279956194.png

     

    vdezhilimsft_0-1676279936052.png

     

    If you want to test the flow manually you need to replace the '15' in the formula with your current date, otherwise the flow will not run.

     

    Best Regards,

    Dezhi

     

  • esfeir4 Profile Picture
    13 on at

    Hello! Thank you for this, just wanted to ask, any idea at what time this starts ? or at midnight once it's the 15th or the end of the month ?

  • esfeir4 Profile Picture
    13 on at

    Also, do I keep the interval 1 day as shown in your screenshot ? the additional function we added overrides it ?

     

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

    Hi @esfeir4 ,

     

    It runs on the 15th of every month and the last day of every month.
    You can also set the time at which the flow will start running.

    vdezhilimsft_0-1676337438925.png

     

    Best Regards,

    Dezhi

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 250 Super User 2026 Season 1

#2
Expiscornovus Profile Picture

Expiscornovus 222 Most Valuable Professional

#3
Haque Profile Picture

Haque 174

Last 30 days Overall leaderboard