# Scheduler trigger with dynamic start date, end date and interval from webhook

**URL:** <https://community.n8n.io/t/scheduler-trigger-with-dynamic-start-date-end-date-and-interval-from-webhook/25803>\
**Category:** Questions\
**Tags:** schedule-trigger\
**Created:** [May 3, 2023, 8:08am UTC](https://community.n8n.io/t/scheduler-trigger-with-dynamic-start-date-end-date-and-interval-from-webhook/25803 "2023-05-03T08:08:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Srinath](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/srinath/32/24954_2.png) [@Srinath](https://community.n8n.io/u/Srinath)\
**Post date:** [May 3, 2023, 8:08am UTC](https://community.n8n.io/t/scheduler-trigger-with-dynamic-start-date-end-date-and-interval-from-webhook/25803/1 "2023-05-03T08:08:12Z")

</div>

I need help to create workflow which will execute periodically with interval and start time and end time from the webhook inputs

---

<div class="post-metadata">

**Author:** ![MutedJam](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mutedjam/32/70851_2.png) [@MutedJam](https://community.n8n.io/u/MutedJam)\
**Post date:** [May 8, 2023, 9:38am UTC](https://community.n8n.io/t/scheduler-trigger-with-dynamic-start-date-end-date-and-interval-from-webhook/25803/3 "2023-05-08T09:38:02Z")

</div>

Hi @Srinath, welcome to the community!

To start your workflow logic at a time specified by a webhook you could use the Wait node. Consider a workflow like this:

Now when calling a webhook URL like `$n8nInstanceUrl/webhook/7bbab986-db99-42ab-8c29-e299ca4b97a4?start=2023-05-08T09:38:00.360Z`, n8n would wait until `2023-05-08T09:38:00.360Z` before running the main part of the workflow:

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/8/8/8800665b138e8928cc8f91edbe8cbe30d9dd881c.png)

I am not quite sure what you mean by end time though - do you want to simply cancel your workflow after a given time? This could only be configured through the workflow settings currently, not for each execution individually I am afraid.

---

<div class="post-metadata">

**Author:** ![Srinath](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/srinath/32/24954_2.png) [@Srinath](https://community.n8n.io/u/Srinath)\
**Post date:** [May 11, 2023, 6:14pm UTC](https://community.n8n.io/t/scheduler-trigger-with-dynamic-start-date-end-date-and-interval-from-webhook/25803/4 "2023-05-11T18:14:52Z")

</div>

I mean. The worflow will start at the particluar date and time and it will have interval to execute the rest of the logic like a loop. Finally worflow will stop the execution at the end date.  
Thank you for the reply. I got some idea to how use wait node for my logic.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [May 18, 2023, 6:15pm UTC](https://community.n8n.io/t/scheduler-trigger-with-dynamic-start-date-end-date-and-interval-from-webhook/25803/5 "2023-05-18T18:15:38Z")

</div>

Closed on May 18, 2023, 6:15pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
