cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ahaigh_lmls
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
v-bacao-msft
Community Support
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:

43.PNG

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.

View solution in original post

5 REPLIES 5

@ahaigh_lmls 

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?20190627b.PNG

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.

ahaigh_lmls
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?  

 

Adam

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.

Will do...Thanks for your suggestions.

 

Best regards,

 

Adam

v-bacao-msft
Community Support
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:

43.PNG

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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

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

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

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

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,653)