Delay Until Task

Status: Open · Asked by ln87 on · 0 views

Arshil Ahmad — Reply ·

Hi @In87,

I'm afraid this will not work. In Delay, you need to enter a date or time that is yet to occur; otherwise, your workflow will stop.

ln87 — Reply ·

Thanks! Any suggestions around this? I can’t control the date as it comes from a webhook and it won’t let me add a router so I can do an if then else type statement.

Arshil Ahmad — Reply ·

A Router could help you with this issue. Could you please confirm the error you are getting while adding a Router to your workflow? Please note that the Router is supposed to be the last step of your workflow.

youtube.com/watch?v=6XDASZVv3tw

ln87 — Reply ·

It says it should be the last step. In most cases that would be fine but I need it before the delay so I can tell it to delay or not based on if the date is in the past. Is there a way around this?

Arshil Ahmad — Reply ·

That's exactly what a Router is used for. The first step of every route is a Filter, which you can use to decide whether to apply the Delay or not. You can set up one route for adding a delay before the execution of your main action step, and the other route to execute the action step without a delay. I would suggest watching the video I shared above to gain a better understanding of the Router.

ln87 — Reply ·

ArshilAhmad - Thanks for the reply and the video. That's exactly what I'm trying to do but it gives me that error message. Here is a quick GIF showing that.

Arshil Ahmad — Reply ·

@In87, Instead of adding another step by clicking on the "+" sign, you can simply use the given action step as a Router.

ln87 — Reply ·

I was able to start a new Workflow and it allows me to add the router after the webhook. Not sure why it won't let me do it in an already-built workflow.

Back to all forum threads · Log in to reply