@Manoj Vavikadai Parthasarathy
Thanks for using MS Q&A platform and posting your query.
Here are two possible solutions for scheduling the job to run only on weekdays, skipping the first three days of the month in ADF triggers:
Solution 1: Combining Monthly and Weekly Triggers
Create two triggers:
- Monthly Trigger: Set the recurrence to "Monthly" and select the desired day of the week (e.g., Tuesday).
- Weekly Trigger: Set the recurrence to "Weekly" with weekdays selected (Monday to Friday).
- In the "Conditions" section of the monthly trigger, add a condition that checks the day of the month. You can use an expression like
dayOfMonth > 3
to ensure the trigger only fires after the 3rd day. - The job will only run if both triggers fire:
- The monthly trigger fires on the desired weekday.
- The daily condition ensures it's past the 3rd day.
- The weekly trigger ensures it's a weekday.
Solution 2: Using a Custom Scheduler Script (More Complex)
- Develop a custom script that checks the current date and day of the week. The script should only return
true
if it's a weekday between the 4th and the end of the month. - Use this script as the scheduling expression for your ADF trigger.
Here's why Solution 1 is recommended:
- It leverages existing functionalities within ADF, making it easier to implement and maintain.
- It's visually clearer in the trigger configuration compared to a custom script.
Hope this helps. Do let us know if you any further queries.