How to specify start and end date for http trigger in logic app

Asma Naser 0 Reputation points
2023-06-08T11:46:57.3+00:00

Hi!

I have HTTP connector with GET method, and I want to specify the start and end date in it. I want the date range to be last 7 days. Can someone help me?

what kind of expression do I insert and where? + I'm still new to 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,527 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ronen Ariely 15,206 Reputation points
    2023-06-08T22:34:35.4633333+00:00

    Hello @Asma Naser and welcome to the QnA forums

    How to specify start and end date for http trigger in logic app

    In the title of the thread you asked about "http trigger" but in the content you speak about "HTTP connector". I will assume that you speak about http trigger.

    In this case...

    Option 1: Using the Trigger conditions

    https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-actions-triggers?WT.mc_id=DP-MVP-5001699#trigger-conditions

    1- Go to your logic app.

    2- On the trigger, click on the three dots (...) at the top right corner.

    3- Select Settings.

    4- Scroll down to Trigger Conditions.

    5- Specify your conditional expression.

    6-Click Done.

    Option 2: disable/enable Logic Apps

    you do not need to specify the range time for the trigger, but the range time of the total logic apps itself, or in other words, you simply need to enable the Logic Apps during that range time and disable it outside the range.

    If the Logic Apps is disabled the no trigger is executed.

    This can be done in any scheduling tool like PowerShell, Azure Automation, or even another Azure Logic Apps which uses Recurrence trigger.


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.