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 :

Send an e-mail notification the last working day of the month

Michal Z. Profile Picture Posted by Michal Z. 147

Power Automate flow which sends an e-mail notification the last working day of the month, except holidays.

Simple and quick to implement. Rady to use. Enjoy!

 

Assumptions:

  • Monday is the first day of the week
  • Saturday and Sundays are non-working days

Send an e-mail notification the last working day of the month.png

If you want to contribute and make it even better (i.e. including holidays or set start weekday to different), use my GitHub repository

 

Above is just s simple version of specific need in the following posts:

Flow Schedule - make flows run when you want - get more scheduling options

Find Days in a month and end of the month   

Categories:

Comments

  • alexpwu01 Profile Picture alexpwu01
    Posted at
    Send an e-mail notification the last working day of the month

    @Michal Thank you.  It is a bit hard to follow at the first but thank you for sharing this Power Automate workflow.  Very much appreciated.

  • Michal Z. Profile Picture Michal Z. 147
    Posted at
    Send an e-mail notification the last working day of the month

    Hi @PandaciucVasile 

    Strange. I imported it into a new environment and I had no issues. Try to import it from GitHub once more or just set the schedule once more and save the flow. Maybe it needs a refresh. 

  • Michal Z. Profile Picture Michal Z. 147
    Posted at
    Send an e-mail notification the last working day of the month

    Hi @TravisBartel 

    It took me a while to understand the logic which I needed to build but I managed. So you should be able to understand it as well. 

    If you have any questions, just ask but be patient as I am not fast in answering.  

  • Michal Z. Profile Picture Michal Z. 147
    Posted at
    Send an e-mail notification the last working day of the month

    Hi @Maz0102 

    This is expected behavior if you run this flow more than 4 days before the end of the month.

    There is a trigger condition that limits the flow to run only 4 days in a month even if it is scheduled to run every day.

    This reduces the call actions in Power Automate.

    Of course, if you remove the trigger condition, the flow will run.  

    /Michal

  • Michal Z. Profile Picture Michal Z. 147
    Posted at
    Send an e-mail notification the last working day of the month

    Hi @hagemaru123 

    Because the condition is not met (DateCountDown was not equal to the current date), probably

  • Michal Z. Profile Picture Michal Z. 147
    Posted at
    Send an e-mail notification the last working day of the month

    Hi @AusarZ 

    Of course, I can.

    But you can do it also. Just use the "List files in folder" action from OneDrive for Business, and for each file use the "Get file content" action to collect all file content. You can collect them in an array of objects. 

    When you collect all, you just need to use "Send an Email (V2)" from the Office 365 Outlook connector to send them. 

    Finally, you can use the information you gathered at the beginning and use the "Delete file" action from the OneDrive connector to delete the files you want. 

    Let me know how far you come and ask for help if you have any issues. 

     

    If you want me to deliver the solution for you instead you learn how to make it and doing it yourself, you can contact me directly.

    /Michal

  • BenWade Profile Picture BenWade 24
    Posted at
    Send an e-mail notification the last working day of the month

    Hi guys,

    First of all, Michal thank you for this wonderful flow. Guys, in order to tackle this issue you have to remove 'Terminate' condition under 'If No'. It solved the problem for me.


    @Michal , if I may ask you, could you please make a flow that will send files in OneDrive for business folder to a certain email on the last working day of the month? The folder only containts photos and one xlsx file. After files sent, photos should be removed except xlsx file.
    So basically, your flow already does the main part, just need add some extra steps.
    Thank you

  • VladMihai Profile Picture VladMihai
    Posted at
    Send an e-mail notification the last working day of the month

    Hello!

    Can someone help me with the formulas for each step of this flow?

    I don't know why, but I can not use the zip file uploaded here.

    Thank you!

  • hagemaru123 Profile Picture hagemaru123
    Posted at
    Send an e-mail notification the last working day of the month

    Hi @Michal , thank you for your template, however, May I ask, why it shows "No input" 

    hagemaru123_0-1693986429049.png

     

  • Maz0102 Profile Picture Maz0102 2
    Posted at
    Send an e-mail notification the last working day of the month

    Hi Michal

     

    Thank you for providing the attachment for this.

     

    I tried to run a test but I get the following error as per screenshot

     

    Maz0102_0-1693819083938.png

     

    are you able to advise please?