Can I Skip a Module Without Using a Node.js Step?

This topic was automatically generated from Slack. You can find the original thread here.

Hi,
Is there any way to skip a module based on the previous data but without to do that in a Node.js step?

Example: I have 2 HTTP actions which called Webhook and I want to make a condition based on the previous step that if some error exist than skip the first HTTP and go to the second.

Possible without a Node.js step?

Hello , unfortunately Pipedream currently did not offer the feature to skip a step based on a condition. You’ll need to do that in code step.

I think the closest feature matched your needs is the Filter action, though it stops the whole workflow, not the single step.

If you want, you can split your workflows into smaller workflows that trigged by HTTP webhooks. By that you can apply Filter actions to a specific workflow to skip it entirely

Hi , Yes I know all the other options but I thought maybe there’s easy way to skip just one module and continue the Workflow.
I’ll do that with a code step.

Thanks.

You can return early from a given workflow Node.js code step to effectively “skip” the rest of the code within the step and move onto the next step.

if(steps.http_request1.$return_value.status_code != 200) {
  return
}

// else send HTTP request

return await [axios.post](http://axios.post)('https://api.example.com', { data })

Thanks By the way, I saw your pricing was changed.
I have the old pricing then I will be affected?

In the near term no, legacy subscription terms will not change.

However to take advantage of new features we recommend switching to a new plan.

It’s a little disappointed to go from 19$ to the same for 149$.
Very big gap

Which limit in particular are you referencing? The new Advanced plan includes 50k credits, and the legacy Professional plan includes 20k invocations.

You right but in the legacy Professional plan it was 0.0002$ per extra so let’s calculate like this: 0.0002 X 30,000 = 6$ so 19$+6$=25$ VS 149$

Ans I could run unlimited workflows and have Concurrency controls

I understand that you need to make a profit but isn’t make sense to increase it with a very big gap.

Just my opinion

Thanks for the feedback.

If it helps, on this new plan, the first credit of a source is free. This helps reduce usage dramatically.

For your use case, you might be able to use the Basic tier within the base included credits.

But of course, I’ll be sharing this feedback with the team.

Thanks.
I hope you will change the pricing again to more affordable prices even for small businesses