How can i trigger the logic app for particular days(26th to10th every month)

Vijay-2791 151 Reputation points
2023-01-09T06:19:59.423+00:00

I was use compose and condition statement in compose i was given the expression formatdatetime(subtractFromTime(startOfMonth(addToTime(utcNow(),1,'month')),1,'day'),'dd')
And u was given the expression in condition action is createArray('1','2','3','4','5','6','7','8','9','10','26','27','28','29','30',outputs('compose_2')) Ccontains formatDateTime(utcNow(),'dd')

Today date is 9 but excecute false statement
Can you please suggest the answer

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,543 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Alistair Ross 7,466 Reputation points Microsoft Employee
    2023-01-09T18:52:52.093+00:00

    Hello @Vijay-2791

    You can run the logic app on a daily recurrence and use a control condition step to evaluate if dayOfMonth(utcNow()) is less than or equal to 9 and greater than or equal to 26. If the control evaluates as true, then perform your workflow, otherwise terminate it.

    Here is a link to an example template which you can deploy.

    https://github.com/TheAlistairRoss/AzureMonitor/blob/main/DayRangeTrigger/template.json

    kind regards

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.