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.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,448)