Wait before continuing
Pause a workflow for a short, set time before the next step runs, and learn when a schedule is the better way to wait hours or days.
A wait step pauses the workflow for a set time, then carries on. Use it for short pauses, such as giving another system a minute to finish creating a record before you read it back.
- StepCreate the invoice in your ledger
- StepWait 2 minutesAllow time for the ledger to process the record.
- StepRead the invoice backCheck whether the record is ready.
Before you start
Decide how long the other system normally needs, but do not assume a fixed pause proves it is ready. Keep the pause within the run's execution limit.
Add a wait
Add the Wait block
Drag Wait from Core Blocks onto the canvas, between the two steps.
Set how long
Choose the block. Type a number under Duration and pick the Unit: Seconds, Minutes, Hours or Days. The unit starts on Seconds, so check it.
Duration must be a plain number, such as 2. Text such as "2 minutes" does not fail the step: it waits 0 and carries on. A value from an earlier step must resolve to a number, not text. If a pause seems to be skipped, open the run and check how long the step waited, or ask chat to set the wait for you.
Waiting hours or days
The run has a one-hour execution limit by default. Your developer can set a different limit. Time waiting for an approval is different and can last longer. A wait counts towards that hour, so a run with a longer wait fails before it gets past the wait. Keep waits to a few minutes.
For gaps of hours or days, such as reminding a customer a week after an invoice is due, use a schedule instead:
- Run the workflow each day on a schedule.
- Have it find the invoices that have reached the right age, and act only on those.
This also copes when due dates change, because each run looks at the latest data.
Check it worked
Open the run under Runs and select the Wait step. Check its result for the time waited, then confirm the next step found the expected record.
If something goes wrong
If the pause is skipped, check that Duration is a number and Unit is correct. If the run times out, shorten the pause or use a schedule. See Error messages explained.
Related
- Follow up on overdue invoices
- Approvals: an approval step waits for a person, which is different from a wait step.
Repeat for each item or run steps side by side
Process each invoice in a list one at a time, or run independent steps at the same time, using the loop and parallel steps in a workflow.
Reshape data between systems
Map fields from one system to the format another expects, such as turning a CRM deal into the fields an invoice in your ledger needs.
Loopfour