English
Swan — transaction
Starts the workflow on each booked (or pending) Swan transaction. The transaction lands in data.swan, with no triggering email.
The Swan — transaction trigger checks the transactions of the whole Swan project at regular intervals and starts one run per booked or pending transaction, or on every change, depending on the Trigger on setting; Side limits it to credits (payments received) or debits. It reads the transactions query filtered on the change date.
The trigger only reads: like the Swan node, it never moves money.
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.swan· 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: Swan
- Outputs:
main
Connection
This node needs a Swan connection.
Parameters
connection
Swan connection — The Swan connection to use. Create it once in Connections; its key never appears in the workflow.
- Type: Connection (
credential) - Required: Yes
- Default:
""(empty)
status
Trigger on
- Type: One choice (
options) - Required: Yes
- Default:
Booked - Options:
Booked— A booked transactionPending— A pending transactionany— Any transaction change
side
Side
- Type: One choice (
options) - Required: No
- Default:
any - Options:
any— Credits and debitsCredit— Credits (payments received)Debit— Debits
everyMinutes
Check every (minutes)
- Type: Number (
number) - Required: No
- Default:
10 - 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.swan.id }}—string. The Swan ID of the transaction.{{ data.swan.status }}—string. The status:Booked,Pending…{{ data.swan.side }}—string. The side:Credit(money in) orDebit(money out).{{ data.swan.amount }}—string. The amount (currencyfor the currency).{{ data.swan.label }}—string. The label (referencefor the reference).{{ data.swan.counterparty }}—string. The counterparty.{{ data.swan.type }}—string. The transaction type (paymentProductfor the payment method).{{ data.swan.executionDate }}—string. The execution date (pluscreatedAtandupdatedAt).{{ data.swan.accountId }}—string. The account concerned (accountNamefor its name).{{ data.swan.changedAt }}—string. The change time that triggered (ISO 8601).
Example
To thank a customer as soon as their transfer is booked, leave Trigger on at “A booked transaction”, set Side to “Credits (payments received)” and quote {{ data.swan.amount }} and {{ data.swan.label }}.
Tips
- Start position. On publication the trigger starts “from now”: nothing earlier is replayed.
- Status changes. The position follows the change date: a transaction that moves from “pending” to “booked” comes back, and triggers again if the setting keeps it.
- Cadence. Between 5 and 1,440 minutes, 10 by default. The instance may impose a higher floor.
- Volume. At most one hundred transactions per check.
- Testing. Testing from this trigger really queries Swan and returns the most recently changed transactions, 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.