Skip, Jump or Go To a Step in Node.js?

Does V2 support skipping to a particular step? It seems there is an example in V1 from ~3 years ago

The use case is that we search for a particular Google Sheet, if it does not exist, we want to move to the next step and create it, but it if does exist, we want to skip that step and jump to the one after it

e.g.

  1. Search for Google Sheet
  2. Create Google Sheet
  3. Add Row

If a Sheet is found in Step 1, we want to skip to Step 3.

Hello @mckltech,

Unfortunately Pipedream workflow v2 is not able to skip/retry a specific step for now. Though Pipedream team is actively working on it and will annound it on Slack/email when the feature landed.

As a workaround for now, you can use Node.js/Python code step that having branching logic. For example, if result from step A exists, then execute some actions

Hi @vunguyenhung

I was wondering if Pierce could make a tutorial for this use-case, or if any example of Skip-To-Step via Node.js / Python exists.

More specifically; you mention:

For example, if result from step A exists, then execute some actions

Are these actions then executed within the step where the If-Then-Else in Python is coded? Or outside?

Just to loop back on my question, using Node.js, we used a combination of $end and a webhook (to send to another workflow) to solve the branching. But it’s messy and not maintainable. The ability to push to other workflows and/or skip steps is a must-have.