Skip to main content
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.
Workflows are executed on silo entries (such as invoices or suppliers). This action creates a job. When a job is run, the silo entry will be updated with any changes or attachments generated during processing. The status of a job can be seen in the silo entry’s activity tab, or in Job history, accessible from the left sidebar.

Running from the Console

There are three ways to run a workflow from the Console:

From a silo entry

While viewing an invoice, supplier, or other silo entry, click Run Workflow in the top toolbar.
Run Workflow button in the silo entry toolbar
This opens a panel where you search for and select the workflow to run. The current entry is used as the document automatically.
Workflow selection panel from a silo entry
Click Run Workflow to create the job. This method does not support passing arguments: the job runs with the selected entry only.

From the workflow editor or list

You can also start a run from the workflow side:
  • From the workflow editor: Click the Run button in the top bar while viewing a workflow.
Run button in the workflow editor
  • From the workflow list: Click the ... menu on any workflow row and select Run.
Run option in the workflow list menu
Both options open a panel where you configure the job inputs:
Run workflow panel with document and arguments fields
  • Select a document: Search for and select an existing silo entry (invoice, supplier, etc.) to process.
  • Arguments: Provide string key-value pairs that will be passed to the workflow steps. The specific keys and values depend on the workflow. For example, a KSeF import workflow might expect a ksef-number and nip argument.
A job requires at least one of these: a document or arguments. You can also provide both. For example, a sync workflow may need a party document selected and date range arguments.
Run workflow panel with a document and arguments filled in
Click Run workflow to create the job.
When a job is run with arguments only and no document selected, the workflow will typically create a new silo entry or fetch an existing one based on the arguments provided. For example, an import workflow receiving a document identifier as an argument will download the document and create a corresponding silo entry automatically.

Running from the API

Create a job with the create job endpoint, giving it the workflow and its input:
  • silo_entry_id: the silo entry to process. This is the preferred input and can be combined with args.
  • args: the arguments the workflow expects. Send them alone for workflows that create or fetch their own entry, such as imports.
  • data: a raw GOBL document, which is stored as a new silo entry before processing. It is only used when the job has neither silo_entry_id nor args. Use webhooks to be notified when the job finishes.