Skip to content

VosFactures — new or changed document ​

Starts the workflow when a VosFactures invoice or quote is created or changed. The document lands in data.vosfactures, with no triggering email.

The VosFactures — new or changed document trigger checks the account’s documents (invoices, quotes) at regular intervals and starts one run per document created, or changed — payment included — depending on the Trigger on setting. It reads GET /invoices.json sorted by last change date.

The run has no triggering email: nodes that act on the triggering email cannot follow this trigger. Send works when you choose the sending mailbox on the node.

At a glance ​

  • Type: trigger.vosfactures · version 1
  • Category: Triggers
  • Kind: Trigger — starts a run
  • Effect: No external effect (none) — nothing is written outside Loop & Roll; safe to replay
  • Needs a carrier email: No
  • Connection: VosFactures
  • Outputs: main
The ports of “VosFactures — new or changed document”: what comes in on the left, what goes out on the rightIt starts runs: no input. Outputs: main. It needs a VosFactures connection.VosFactures — new orchanged documenttrigger.vosfacturesEventmainConnection: VosFactures
The ports of “VosFactures — new or changed document”: what comes in on the left, what goes out on the right

Connection ​

This node needs a VosFactures connection.

Parameters ​

connection ​

VosFactures connection — The VosFactures connection to use. Create it once in Connections; its key never appears in the workflow.

  • Type: Connection (credential)
  • Required: Yes
  • Default: "" (empty)

event ​

Trigger on

  • Type: One choice (options)
  • Required: Yes
  • Default: created
  • Options:
    • created — A new document
    • updated — A changed document (payment included)

everyMinutes ​

Check every (minutes)

  • Type: Number (number)
  • Required: No
  • Default: 15
  • Whole number, from 5 to 1440

Outputs ​

  • main — Taken once per new item found by a check: each item starts its own run.

Data produced ​

What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).

  • {{ data.vosfactures.id }} — string. The VosFactures ID of the document, to pass to the VosFactures node.
  • {{ data.vosfactures.number }} — string. The document number.
  • {{ data.vosfactures.kind }} — string. The document type as VosFactures returns it (vat for an invoice, estimate for a quote…).
  • {{ data.vosfactures.status }} — string. The document status.
  • {{ data.vosfactures.priceGross }} — string. The total including tax (priceNet excluding tax, currency for the currency).
  • {{ data.vosfactures.paid }} — string. The amount paid.
  • {{ data.vosfactures.buyerName }} — string. The buyer (buyerEmail for their address, clientId for the contact).
  • {{ data.vosfactures.issueDate }} — string. The issue date (paymentTo for the due date).
  • {{ data.vosfactures.changedAt }} — string. The creation (or change) time that triggered (ISO 8601).

Example ​

To send each new invoice with its PDF, set Trigger on to “A new document”, then a VosFactures doc node with action = invoice.get and invoiceId = {{ data.vosfactures.id }}; Compose attaches {{ data.doc.attachmentPosition }}.

Tips ​

  • Start position. On publication the trigger starts “from now”: nothing earlier is replayed. Publishing again keeps the position already reached.
  • Fifty documents reread per check. Each check rereads the 50 most recently changed documents. Beyond 50 changes between two checks, the oldest ones wait until a new change brings them back up: shorten the cadence if your volume requires it.
  • Cadence. Between 5 and 1,440 minutes, 15 by default. The instance may impose a higher floor.
  • Testing. Testing from this trigger really queries VosFactures and runs the draft on the most recent documents, without ever moving the position.
  • Errors. A temporary error leaves the position unchanged and the next check retries. A permanent error (revoked connection, incomplete settings) sends you a notification, once per outage.

Loop & Roll — the workflow builder for email.