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 Automate
Unanswered

Last day of the month

(0) ShareShare
ReportReport
Posted on by 93

Hi Everyone

 

I have a flow that send an email one time on each month. " Please see the below link"

https://ibb.co/xJXyTK2

 

I need this flow to work in the last day of each month. So, my question is if I insert the start time 2020-10-31T06:00:00.000Z

 

in which day in the below months the flow will work

 

November/2020

December/2020

January/2021

February/2020

 

Thank you so much

 

Categories:
  • Brad_Groux Profile Picture
    4,556 on at

    You have a few different ways to determine the last day of the month.

    Determine if today is the last day of the month, such as when you schedule a flow to run daily: 

    If(Month(Today()) = Month(Today()+1), "Not Last Day Of Month", "Last Day Of Month")

    Subtract from first day of the month, to get the last day of the month, for when you want to run flow on a schedule: 

    subtractFromTime(startOfMonth(addToTime(utcNow(),1,'month')),1,'day')

    The Time intelligence functions (DAX) has loads of ways to determine the time/day, including ENDOFMONTH, and ENDOFQUARTER.

    If you could provide an expanded screenshot of your Flow and steps, your Flow run history, and of any detailed error messages you're receiving we could likely better assist you. Also, for the best results, you may want to review How to write a good forum post.

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE.

  • alhilo Profile Picture
    93 on at

    Thank you for your reply

     

    could you please advise where I should write the below equation

     

    subtractFromTime(startOfMonth(addToTime(utcNow(),1,'month')),1,'day')

  • Brad_Groux Profile Picture
    4,556 on at

    You have a few options, including in an expression in a condition, a variable, or via a function. 

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION ☑️. If you find this reply helpful, please consider giving it a LIKE.

  • Ankeshk690 Profile Picture
    2 on at

    How can I delete the files before 1 month (depending on the total days of the month ) and schedule the automated workflow for the last day of the month?

  • MichChrdk Profile Picture
    38 on at

    here is what i did.

    I made a recurrence trigger, once a month on the 29th (due to february and not taking leap year into account i realise). Then a compose action with the above expression, then a condition "utcnow = compose" ? no? Delay action 1 day. No action in "yes". Havent tested it yet, but hopefully it should continue loop delaying from the 29th till the 30/31st and then run. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 424

#2
11manish Profile Picture

11manish 328 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard