Skip to content

Pennylane invoice ​

Starts the workflow when a customer or supplier invoice is created (or changed) in Pennylane, checking at a regular interval. The invoice lands in data.pennylane, with no triggering email.

The Pennylane invoice trigger checks Pennylane’s change log at regular intervals and starts one run per new customer (or supplier) invoice — or changed one, depending on the setting. The invoice arrives with its number, amounts and payment status.

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.pennylane · 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: Pennylane
  • Outputs: main
The ports of “Pennylane invoice”: what comes in on the left, what goes out on the rightIt starts runs: no input. Outputs: main. It needs a Pennylane connection.Pennylane invoicetrigger.pennylaneEventmainConnection: Pennylane
The ports of “Pennylane invoice”: what comes in on the left, what goes out on the right

Connection ​

This node needs a Pennylane connection.

Parameters ​

connection ​

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

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

entity ​

Invoices watched

  • Type: One choice (options)
  • Required: Yes
  • Default: customer_invoices
  • Options:
    • customer_invoices — Customer invoices
    • supplier_invoices — Supplier invoices

event ​

Trigger on

  • Type: One choice (options)
  • Required: Yes
  • Default: created
  • Options:
    • created — A new invoice
    • any — An invoice created or changed: An invoice paid, finalized or corrected triggers the workflow again: filter on its status next.

everyMinutes ​

Check every (minutes) — Each check costs two requests from the token’s quota (25 every 5 seconds).

  • 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.pennylane.invoiceId }} — string. The Pennylane id of the invoice.
  • {{ data.pennylane.entity }} — string. customer_invoices or supplier_invoices.
  • {{ data.pennylane.operation }} — string. insert (creation) or update (change).
  • {{ data.pennylane.invoiceNumber }} — string. The invoice number.
  • {{ data.pennylane.status }} — string. The Pennylane status (draft, upcoming, late, paid…).
  • {{ data.pennylane.paid }} — boolean. true when the invoice is paid.
  • {{ data.pennylane.amount }} — string. The amount including tax, in the invoice currency.

Example ​

To thank a customer as soon as their invoice is paid, set Invoices watched to “Customer invoices” and Trigger on to “An invoice created or changed”, then filter on {{ data.pennylane.paid }} with If.

Tips ​

  • Start position. On publication the trigger starts “from now”: nothing earlier is replayed. Publishing again keeps the position already reached.
  • Cadence. Between 5 and 1,440 minutes. The instance may impose a higher floor; each check uses requests from the connection’s quota.
  • Four weeks. Pennylane’s change log only keeps four weeks: a trigger unpublished for longer resumes at the edge of that window.
  • Testing. Testing from this trigger really queries Pennylane and runs the draft on the most recent items, 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.