
- Empty Invoice workflow: for sales or expenses.
- Empty Party workflow: for suppliers or customers.
switch at the top right of the canvas can be used to display the JSON representation of the workflow. This makes it easy to copy and paste workflows from examples or other workspaces. Make sure to return to the visual editor view to ensure the document is validated.
Creating conditions
Conditions create blocks that execute when a given status and code (optional) match the response of a workflow step. There are two status signals (OK and KO) plus Any, which matches regardless of the status.
- OK: when a workflow step completes as expected.
- KO: when there was an error in the step’s execution.
- Any: will match both
OKandKO.
KO status signal. Since GOBL already handles many of the validations in tax authorities lists, we recommend only implementing conditions which happen in your workflow with certain regularity and which should be handled automatically.
As an example, we will handle the case where a supplier is not registered in the taxpayer census by the AEAT:
1
Add a condition on the step
On the desired step, click on the menu button 
... and select Add condition.
2
Configure the condition

- Status:
KO. - Code:
4107(Tax ID not identified in the taxpayer census). - End workflow here:
✔(the workflow will stop executing after this block).
3
Add an action to the condition block

Running a workflow
Workflows in Invopop can be executed through the following methods:- Manually via the Invopop Console
- Via API calls to the create job endpoint
- Automatically by an embedded application.
Error handling
Any step that causes an error (KO) from which the job can’t recover, and is not handled through a condition, will trigger the error handling flow. To enable this section, tap on Handle Errors at the bottom of the workflow creation screen, then add steps into this area which you want to execute when the job fails (often times setting the entry’s state to Error and possibly sending a notification).
FAQ
How do I update deprecated workflow steps?
How do I update deprecated workflow steps?
If your step conditions displays a This step contains deprecated conditions warning, your workflow will continue working normally, but we recommend updating your workflow so that you can modify it without unexpected behavior.Steps under deprecated conditions will display with a warning symbol ⚠️ with the label “Go to [action name]”. Click on the menu button
... and select “Replace”, and then select the replacement action from the sidebar. So, for example, if the deprecated step is labelled “Go to Set State”, replace this step with “Set State” and choose the same configuration as the original step (which you should find further down within the same workflow).Once all deprecated steps are replaced, locate the the referenced action(s) and delete.Related resources
| API Reference | Create a workflow Fetch all workflows Create a job (POST) Create a job (PUT) |
| Related Guides | Workflows Guide |