Azuretech Thanks for posting your question in Microsoft Q&A. For your scenario, you can use Recurrence trigger, with the following conditions:
-
- Configure frequency as
week
, and then choose schedule hours, minutes, weekdays as follows:
- Configure frequency as
{
"type": "Recurrence",
"recurrence": {
"frequency": "Week",
"interval": 1,
"schedule": {
"hours": [
"9",
"21"
],
"minutes": [
0
],
"weekDays": [
"Saturday",
"Sunday"
]
},
"timeZone": "Eastern Standard Time"
},
"conditions": [
{
"expression": "@equals(add(div(dayOfMonth(utcNow()),7),1),3)"
}
]
}
- Then add conditions with an expression to validate if it is third week. The logic is to get the day of the month, divide by 7, which gives us the week of the month, then add a condition to look if it is third week. For example, you are looking for 2nd week, you will need to adjust like
@equals(add(div(dayOfMonth(utcNow()),7),1),2)
. Check out Trigger conditions doc for more info.
Note: the above snippet is just for reference and please validate to make sure all your conditions are met and adjust the expressions accordingly for your need. I hope this helps and let me know if you have any questions.
If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.