English
B2Brouter e-invoice
Starts the workflow when an e-invoice is received, or when an issued invoice is accepted, refused, paid or in error, checking at a regular interval. The invoice lands in data.b2brouter, with no triggering email.
The B2Brouter e-invoice trigger checks a B2Brouter account at regular intervals and starts one run per received invoice, or per issued invoice accepted, refused, paid or in error, depending on the setting.
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.b2brouter· 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: B2Brouter
- Outputs:
main
Connection
This node needs a B2Brouter connection.
Parameters
connection
B2Brouter connection — The B2Brouter connection to use. Create it once in Connections; its key never appears in the workflow.
- Type: Connection (
credential) - Required: Yes
- Default:
""(empty)
account
Account
- Type: Remote resource (
resourceLocator) - Required: Yes
- Ways to choose: pick from a list, type an ID (
b2brouter.account) - Listed with the connection in:
connection
event
Trigger on
- Type: One choice (
options) - Required: Yes
- Default:
received - Options:
received— An invoice receivedaccepted— An issued invoice acceptedrefused— An issued invoice refusedpaid— An issued invoice paiderror— An issued invoice in error
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.b2brouter.id }}—string. The B2Brouter id of the invoice.{{ data.b2brouter.event }}—string. What the trigger watches (received,accepted…).{{ data.b2brouter.number }}—string. The invoice number.{{ data.b2brouter.state }}—string. The invoice status.{{ data.b2brouter.total }}—number. The amount including tax.{{ data.b2brouter.contactName }}—string. The supplier (received invoice) or the customer (issued invoice).
Example
To forward every received invoice to accounting, set Trigger on to “An invoice received” and chain the B2Brouter node (invoice.download) then Compose.
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.
- Day precision. B2Brouter’s date filters work by day: each check reads again from the day before the position, without duplicates thanks to the exact position.
- Testing. Testing from this trigger really queries B2Brouter 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.