Schedule next execution based on workflow parameters

Hey everyone!

I’m building a workflow where one of my nodes have a “Next Run” parameter on their output. Is it possible to use that in some way to schedule my next execution?

I’ll give an example so we can work together:

Node 1: Schedule Trigger - Runs every Wednesday

Node 2: GET on endpoint that give me weekly results I want but also provide me with “next_run” with an exact date because if there is a holiday for an example, instead of running on Wednesday they will run on thursday.

Node 3: Telegram message with weekly summary

In this scenario, I would like to change the scheduled trigger (Node 1) to that specific date the request returned (Node 2), but since a trigger is always the first action on a workflow I cannot do it.

Do you see a way to do it? Specially if it does not involve external sources of data to deal with this trigger schedule?

Hey, I don’t think it’s possible, but what you could do is execute a subworkflow that runs a “wait” node first thing that will wait the time until when you want the rest of the workflow to run.

Hmmm nice that is a great idea, created some test workflows here and it works! At the end of my main workflow i can pass it to the “waiting workflow”. Not the most robust scenario but it seems to work!