English
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
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 receivedout— 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:infor an invoice received,outfor an invoice issued.{{ data.superpdp.number }}—string. The invoice number.{{ data.superpdp.sellerName }}—string. The seller (buyerNamefor the buyer).{{ data.superpdp.totalWithVat }}—string. The total including VAT (totalWithoutVatexcluding VAT,amountDuefor the amount to pay,currencyfor the currency).{{ data.superpdp.issueDate }}—string. The issue date (dueDatefor 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.