English
Iopole — e-invoice
Starts the workflow on each e-invoice received (or issued) on Iopole. The invoice lands in data.iopole, with no triggering email.
The Iopole — e-invoice trigger checks Iopole at regular intervals and starts one run per invoice received (or issued, depending on the Trigger on setting). It queries the Iopole search filtered by direction and creation date.
It does not use Iopole’s “PULL” mode, which marks invoices as seen: a check only reads.
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.iopole· 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: Iopole
- Outputs:
main
Connection
This node needs a Iopole connection.
Parameters
connection
Iopole connection — The Iopole 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:
INBOUND - Options:
INBOUND— An invoice receivedOUTBOUND— 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.iopole.invoiceId }}—string. The Iopole ID (UUID) of the invoice, to pass to the Iopole node.{{ data.iopole.direction }}—string. The direction:INBOUNDfor an invoice received,OUTBOUNDfor an invoice issued.{{ data.iopole.number }}—string. The invoice number.{{ data.iopole.sellerName }}—string. The seller (buyerNamefor the buyer).{{ data.iopole.amount }}—string. The invoice amount.{{ data.iopole.state }}—string. The invoice state at Iopole.{{ data.iopole.lastStatusCode }}—string. The code of the latest status (lastStatusDatefor its date).{{ data.iopole.createDate }}—string. The creation date at Iopole.
Example
To forward each supplier invoice received to the accountant, leave Trigger on at “An invoice received”, then an Iopole file node with action = invoice.download and invoiceId = {{ data.iopole.invoiceId }}; Compose attaches {{ data.file.attachmentPosition }}.
Tips
- Start position. On publication the trigger starts “from now”: nothing earlier is replayed. Iopole’s date filter works by day: each check rereads one day back and drops the invoices already returned.
- Cadence. Between 5 and 1,440 minutes, 15 by default. The instance may impose a higher floor.
- Volume. At most one hundred invoices trigger per check.
- No duplicates. A run is identified by the invoice: it only triggers once.
- Testing. Testing from this trigger really queries Iopole and returns up to fifty invoices in the chosen direction, 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.