Schedule a Flow to Run on the Last Monday of Every Month

jmiskey
Kilo Sage

I am trying to schedule a Flow to run on the last Monday of every month, but I am unsure of how to set that up.  Does anyone know how to do that? 

 

(And yes, it does actually have to be the last Monday of every month - there is no leeway there, so please do not offer any suggestions that do not meet that requirement.)

 

Thank you.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@jmiskey 

you will have to make flow run daily, then create a custom flow action and check if today is last Monday of the month.

It will return true/false.

if true then your next steps run, if false then your flow ends

OR
You can use daily scheduled job and use Conditional script, something like this and you can enhance

add that script and set answer=true or false in this script

AnkurBawiskar_0-1753277501413.png

 

Schedule report to run on last Friday of every month 

Scheduled Job Condition - First Monday of Every Month 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

7 REPLIES 7

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @jmiskey 

 

A reference:

 

https://www.servicenow.com/community/developer-forum/trigger-scheduled-job-every-month-second-week-m...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

No, that is not what I am looking for!  That works if you know EXACTLY which day you want, i.e. the 2nd Monday of every month.  However, depending on the month, the last Monday of the month could be the 4th or 5th Monday - it isn't known  for certain. 

 

I need it to dynamically select the LAST Monday of every month, regardless of that is the 4th of 5th Monday.

Hi @jmiskey 

These are reference links only — you can use them to get an idea.

https://www.servicenow.com/community/guided-learning-itsm/need-to-send-an-email-notification-on-last...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@jmiskey 

you will have to make flow run daily, then create a custom flow action and check if today is last Monday of the month.

It will return true/false.

if true then your next steps run, if false then your flow ends

OR
You can use daily scheduled job and use Conditional script, something like this and you can enhance

add that script and set answer=true or false in this script

AnkurBawiskar_0-1753277501413.png

 

Schedule report to run on last Friday of every month 

Scheduled Job Condition - First Monday of Every Month 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader