I want to run the logic app only 1 to 12th in evry month hiw can i set up the logic app using in CONDITION action

Vijay-2791 151 Reputation points
2022-12-22T04:41:00.517+00:00

In my logic app i will maintain 4 countries those four countries will maintain different dates so logic app using condition statement how can we build the logic app

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

Accepted answer
  1. MayankBargali-MSFT 70,401 Reputation points
    2022-12-23T08:22:47.683+00:00

    @Vijay-2791 Thanks for reaching out. To run your logic app only between 1th and 12th month you need to run your logic app everyday. Now based on your business requirement you need to leverage the condition statement and verify the current date and compare whether it falls between 1th and 12th month. If yes then you need to write your workflow further in the True condition as below.

    In the below expression I am getting today's date and returning only day part and converting to integer for comparing in my condition.
    int(utcNow('dd'))

    273654-image.png

    Please refer to Date and time functions on different function available in logic app. The list of available functions is listed here.

    Now for individual further condition you need to check whether today date falls between your business requirement date and process your workflow further.

    **Note: ** It returns the time in UTC and you can further convert it as per your requirement.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


0 additional answers

Sort by: Most helpful

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.