cancel
Showing results for
Did you mean:
Frequent Visitor

## Days calculate

Hi

I would like to create a flow that sends a reminder on the first day of each month...even better would be the first working day of each month.  I have it set to run every four Mondays, which is okay, but closer to the first of the month would be ideal.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support

Hi @ahaigh_lmls ,

Please refer to the following method to configure Flow.

Set Flow to run once a day to check if the current date is the first working day of the month.

Use the Expression below to get the first working day of the month.

`if(not(or(equals(dayOfWeek(startOfMonth(utcNow())),0),equals(dayOfWeek(startOfMonth(utcNow())),6))),startOfMonth(utcNow(),'yyyy-MM-dd'),addDays(startOfMonth(utcNow()),if(equals(dayOfWeek(startOfMonth(utcNow())),0),1,2),'yyyy-MM-dd'))`

If they are equal, send the reminder.

Image reference:

Hope it helps.

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
5 REPLIES 5
MVP

Hi there!  I was looking at the recurrence trigger and it looks like you can run it once a month, and begin on the first of the month.  Will that work for you?

Keep us posted.

-Ed-

If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Frequent Visitor

Ed,

Thanks for jumping in. 🙂 The syntax is confusing though, does that occur once monthly, or on the first of the month.

What do you think?

MVP

My expectation would be that it would run every month on the first.

Another approach might be to have something run daily, and look at the date, if it's equal to '1', then run your Flow.

Try it out and keep us posted.

-Ed-

If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.

Frequent Visitor

Best regards,

Community Support

Hi @ahaigh_lmls ,

Please refer to the following method to configure Flow.

Set Flow to run once a day to check if the current date is the first working day of the month.

Use the Expression below to get the first working day of the month.

`if(not(or(equals(dayOfWeek(startOfMonth(utcNow())),0),equals(dayOfWeek(startOfMonth(utcNow())),6))),startOfMonth(utcNow(),'yyyy-MM-dd'),addDays(startOfMonth(utcNow()),if(equals(dayOfWeek(startOfMonth(utcNow())),0),1,2),'yyyy-MM-dd'))`

If they are equal, send the reminder.

Image reference:

Hope it helps.

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Announcements

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

#### A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

#### Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.