Skip to content

Super PDP — e-invoice ​

Starts the workflow on each e-invoice received (or issued) on Super PDP. The invoice lands in data.superpdp, with no triggering email.

The Super PDP — e-invoice trigger checks Super PDP at regular intervals and starts one run per invoice received (or issued, depending on the Trigger on setting). It reads GET /invoices after the highest ID already seen: Super PDP IDs are strictly increasing.

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

Connection ​

This node needs a Super PDP connection.

Parameters ​

connection ​

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

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

direction ​

Trigger on

  • Type: One choice (options)
  • Required: Yes
  • Default: in
  • Options:
    • in — An invoice received
    • out — An invoice issued

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.superpdp.id }} — string. The Super PDP ID of the invoice, to pass to the Super PDP node.
  • {{ data.superpdp.direction }} — string. The direction: in for an invoice received, out for an invoice issued.
  • {{ data.superpdp.number }} — string. The invoice number.
  • {{ data.superpdp.sellerName }} — string. The seller (buyerName for the buyer).
  • {{ data.superpdp.totalWithVat }} — string. The total including VAT (totalWithoutVat excluding VAT, amountDue for the amount to pay, currency for the currency).
  • {{ data.superpdp.issueDate }} — string. The issue date (dueDate for the due date).
  • {{ data.superpdp.externalId }} — string. The internal reference given when issuing, if any.
  • {{ data.superpdp.createdAt }} — string. The time it arrived on Super PDP.

Example ​

To forward each supplier invoice received to the accountant, leave Trigger on at “An invoice received”, then a Super PDP file node with action = invoice.download and invoiceId = {{ data.superpdp.id }}; Compose attaches {{ data.file.attachmentPosition }}.

Tips ​

  • Start position. The first check after publishing remembers the most recent invoice without starting anything: the trigger does not replay the account’s history.
  • Cadence. Between 5 and 1,440 minutes, 15 by default. The instance may impose a higher floor.
  • Volume. At most one hundred invoices per check; the next ones go at the following check.
  • No duplicates. A run is identified by the invoice: it only triggers once.
  • Testing. Testing from this trigger really queries Super PDP and returns the most recent invoices, 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.