A workflow has the Pending status when it's linked to an invoice but is waiting for certain conditions before it starts. This means you can attach a workflow early and have it start only when the invoice data is ready.
How to recognize a pending workflow
On the invoice, a pending workflow is shown with a navy blue circle. You can see the circle in the invoice header and next to Pending on the workflow in the Workflow tab.
| Navy blue circle: The workflow is pending. It's waiting for its start conditions to be met. |
While the workflow is pending, the invoice has the Missing workflow status.
How it works
In the workflow editor, the Add menu lets you add two kinds of conditions:
- Add if...: The conditions an invoice must meet for the workflow to be applied to it.
- Start when...: The conditions the invoice must meet before the attached workflow starts. Until then, the workflow stays Pending.
Note: If you don't add any Start when... conditions, the workflow starts as soon as it's attached to the invoice.
Set start conditions for a workflow
- Open the workflow, click Add, and select Start when....
- In the Start when... section, click Add condition.
- Select the Field and the Search method, then enter the Search value.
- To add more conditions, click Add condition again.
- Click Save.
The workflow is saved as a new version.
Example
To start a workflow only when the VAT amount on the invoice is 25, add a Start when... condition with these values:
- Field: Invoice header > VAT amount
- Search method: Equals
- Search value: 25
The workflow stays Pending until the VAT amount in the invoice header is 25.
When a pending workflow starts
A pending workflow makes sure the approval process starts only when the invoice meets the conditions you set. Until all the Start when... conditions match, the workflow stays in the Pending status.
When the invoice meets all the Start when... conditions, the workflow leaves the Pending status and starts its steps.
Comments
0 comments
Please sign in to leave a comment.