← Help center
Getting started
Using the help centerFinding your way: the side menuLight, dark or system theme
Reports
Reports: finding and running themProfit and LossBalance SheetCash Flow StatementStatement of Owner's EquityBudget vs. ActualAccounts Receivable AgingAccounts Payable AgingProfit by Sales ChannelCOGS & Gross MarginTrue Net Margin by SKU / LotPayout ReconciliationReturns, Refunds & ShrinkageInventory Valuation SummaryInventory Turnover & Sell-ThroughAged Inventory / Dead StockStockout & Reorder PointSales Tax Liability by Jurisdiction
Dashboards
Using dashboardsAdd and arrange widgetsCreate, share and personalize dashboards
AI product intake
How AI product intake worksStart a batch and capture itemsThe review queue and item statusesReview an item, and change it after approvalHow prices are suggestedPhotos, cleanup and AI picturesPicture stylesItems in several sizes or colorsApprove: create the product and its stockIntake settingsTroubleshooting intake
Sales orders and quotes
Sales orders and quotesReceive customer paymentsSales settings
Purchasing
Purchase orders
Banking
Connecting your bank and card accountsReviewing bank transactionsImporting a bank statement fileReconciling a bank or card accountBank rulesBanking settings: matching and AI
Selling on eBay
Connect your eBay accountAccount settings and marketplace feesPublish a product to eBayItem specifics eBay requiresList sizes and colors as one listingManage your eBay listingseBay orders become sales ordersTell eBay an order shippedKeep eBay quantities in syncRefresh older listings (end and relist)Fix eBay listing issues and relistImport your existing eBay listings
Product labels
Product labels at a glanceDesign a label templatePrint labelsPrinter setup: Brother, Zebra, Dymo, Rollo and sheets
Printing and document templates
Document templatesDesign a document templatePrint and email documentsChecks and preprinted formsWho gets which template
Team and users
Invite people to your companyRoles and permissionsAccept an invitation
Inventory
Find products: search, filters and sortingInventory transactions and postingWarehouse accounts
Logistics and shipping
The logistics overviewShipmentsFreight bookingsCustoms entries and the duty calculatorShipment problemsLogistics KPIs and reports
Projects and time
The projects overview and reportsCreate and run a projectPhases, tasks and task templatesLogging time and timesheets
Contracts
The contracts overview and analyticsCreate and manage contractsRenewals and amendments
Setup and accounting
Email: templates, sender and sent emailsCustom fieldsCompany time zoneBusiness calendarBranch managersAssortments: one item in several sizes or colorsUnits of measureSales tax (older guide)Example: Kansas sales taxApprovalsJournal entries
Taxes and 1099s
Sales tax setupTax on orders and invoicesTax summary report1099 contractors and year-end review
Automations
Automations: when, if, thenWorkflows: waits, approvals and conditionsMore workflow stepsAsking AI in a workflowOther systems starting and answering automationsAutomation usageBuilding a workflow by describing itTesting an automation before it goes liveApproval before an automation goes liveThe Automations panel on a recordSending records to another system
AI credits
How AI credits workWhat each AI action costs

Workflows: waits, approvals and conditions

Steps that wait, ask for approval and branch; test runs, watching runs and going back to a version.


What a workflow is

A workflow is an automation with several steps that can wait, ask for approval and check a condition before going on. It starts like a business event (When, If), then runs its steps from top to bottom over hours or days.

For example: "When a purchase order over 10,000 is created or its total changes, ask for approval. If nobody decides within 2 business days, tell the admins. Once approved, email the vendor and mark the order sent. If rejected, tell whoever changed it."

Start from the templateThat example is ready under Automations › Templates › Approval for large purchase orders. Choose your approval process and turn it on.

Creating a workflow

You can also write what it should do and let the AI propose the steps: see Building a workflow by describing it.

  1. Open Automations and click New workflow.
  2. Fill in When and If as for a business event.
  3. Under Steps, use Add the first step… and keep adding steps in the order they should happen. Use the arrows to move a step and Remove to delete it.
  4. Click Save, then Test run to see what it would do, then Turn on.
The Steps card of a workflow: step 1, Ask for approval, with the approval process Purchase orders over 10,000, the request title, Do something if it isn't decided within 2 business days ticked, and the indented section If not decided in time holding a Notify people step for everyone with the role Admin. If approved begins below with Send an email.
An approval step with what happens if it is late, approved or rejected.

The diagram

Next to List, the Diagram tab draws the workflow as a flowchart: each step is a box, and approvals and conditions split into their paths. Click a box to jump to that step in the list and edit it. Click a + on a line to add a step at exactly that point. To move a step, drag its box onto another line: the lines it may go to are dashed while you drag, and everything inside the step (its paths and their steps) moves with it. A step can't go where it isn't allowed, for example a wait inside If not decided in time. Undo puts it back. On the workflow's page, Diagram shows the version you saved.

The workflow diagram in the editor: a Starts box for purchase orders over 10,000, then an Ask for approval box that splits into three paths. If not decided within 2 business days has a Notify people box and then keeps waiting; If approved has Send an email to the vendor and Change a field (Status to Sent to Vendor); If rejected has Notify people. The paths join at End, with + buttons on the lines.
The purchase order approval workflow as a diagram.

The kinds of step

StepWhat it does
Notify people, Send an email, Change a field, Send to another systemThe same actions as in a business event. Emails can also go to the vendor or customer on the record (The vendor's email address).
WaitPauses the workflow for a number of hours, days, business hours or business days. Business time follows your business calendar.
Check a conditionLooks at the record as it is at that moment and goes on with If yes or If no.
Ask for approvalSends the record through one of your approval processes and waits for the decision, then goes on with If approved or If rejected.
Post in a chatPosts a message in a connected Slack, Microsoft Teams or Google Chat channel.
Wait for a condition, Wait for a dateWaits until something is true of the record, or for a date on it, with a deadline if you want one.
Wait for another systemWaits for another system to answer a record the workflow sent it. See Other systems starting and answering automations.
Run side by sideRuns paths at the same time, then carries on when all, or the first, are done.
Repeat for each lineDoes its steps for every line of the order, bill or invoice, or the lines that match.
Run another workflowRuns a workflow you built once, such as a multi-level approval, on the same record.
Ask AISummarizes, sorts or picks out details from the record's text. See Asking AI in a workflow.
StopEnds the workflow there.

How the waits, paths, lines and reused workflows work is in More workflow steps.

After the steps inside If yes, If approved and the like, the workflow carries on with the step below. A workflow can't jump back to an earlier step.

Asking for approval

Who approves, and in which order, is set in Approvals, not in the workflow: create an approval process for purchase orders (or sales orders) there (for example with the department manager as approver), then choose it in the step. Approvers see the request in Approvals as usual and decide there.

  • Title of the request is what approvers see. Use Insert a field to include the order number or total.
  • Do something if it isn't decided within… runs the steps under If not decided in time once, for example a reminder to the finance director, and then keeps waiting for the decision. These steps can't wait or ask for another approval.
  • If the order is already waiting for approval when the workflow reaches this step, it waits for that decision instead of asking again.
  • The request is made on behalf of the person whose change started the workflow, and the department and branch come from the order.
  • If the approval request is cancelled in Approvals, the workflow stops.
Purchase orders and sales orders, for nowApproval steps work for purchase orders and sales orders, the records connected to Approvals. The other step kinds work for every kind of record. To approve the sales orders someone flags, add a custom field such as a Requires approval checkbox and start the workflow when it is ticked.

One run per record at a time

While a workflow is running for a record (for example waiting for approval), changes to that record don't start another run of the same workflow. When the run ends, the next matching change can start a new one.

Test run

The test run page also shows how often the workflow would have started in the last 30 days and what it does in each situation it can meet: see Testing an automation before it goes live.

Open the workflow and click Test run. Type a record's number, choose how each approval would go (approved or rejected, in time or late), and click Run the test. You see every step it would take, with the dates waits and reminders would land on. Nothing is sent, changed or asked for.

The test run page for a sales order workflow, sales order 21: it starts on Sunday evening, waits 2 business days to Wednesday 9:00 AM, checks whether Invoiced is no (yes), would notify everyone with the role Accountant, waits 3 business days to Monday 9:00 AM and would email the customer.
A test run skips ahead through the waits and shows the date each step would happen. For a workflow with an approval step you also choose how each approval goes.

Watching a run

Each record's own page also shows this in its Automations panel.

On the workflow's page, Runs lists each record it is working on. A run that is waiting shows Waiting; open it to see what it waits for (until when, or for which approval request, with a link to it) and every step done so far. Where it is draws the workflow with the steps already done ticked and the step it is on marked now.

What you wantWhat to do
Stop a run for one recordOpen the run and click Cancel run. An approval request it made stays open in Approvals; cancel it there if it isn't needed.
Stop the workflow for new recordsClick Pause. Runs already started carry on.
Undo a change to the workflowUnder Versions, click Go back to this on an earlier version, review it and put it live. Runs already started keep the version they started with.

If something looks wrong

What you seeWhat to do
"Choose the approval process to use"Pick one in the step. If the list is empty, create an approval process for that kind of record under Approvals first.
"… has no approval steps yet"Open the process in Approvals and add at least one step with an approver.
A run failed at "Ask for approval"Open the run: the reason comes from Approvals (for example no process matched). Fix it there and start the run again by changing the record.
The workflow didn't start for an orderCheck that it was on, that the If conditions were true, and that no other run of it was still open for that order.
"The record was deleted, so the workflow stopped"The record was deleted while the workflow waited. Nothing else happens for it.

What workflows can't do yet

  • Jump back to an earlier step. Waits for a condition with a deadline cover most "chase until" cases.
  • Ask for approval of anything but purchase orders and sales orders.
  • Create records, or change other records or the lines themselves.
Was this article helpful?
DJDT

History

Versions

Time

Settings from erp.config.settings

Headers

Request

SQL queries from 0 connections

Static files (445 found, 3 used)

Templates (6 rendered)

Alerts

Cache calls from 6 backends

Signals