English
Sellsy — new record
Starts the workflow when a company, an opportunity or an invoice is created in Sellsy. The record lands in data.sellsy, with no triggering email.
The Sellsy — new record trigger checks Sellsy at regular intervals and starts one run per company, opportunity or invoice created, depending on the Trigger on setting. It queries the Sellsy search of the chosen object, filtered on the creation date.
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.sellsy· 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: Sellsy
- Outputs:
main
Connection
This node needs a Sellsy connection.
Parameters
connection
Sellsy connection — The Sellsy connection to use. Create it once in Connections; its key never appears in the workflow.
- Type: Connection (
credential) - Required: Yes
- Default:
""(empty)
object
Trigger on
- Type: One choice (
options) - Required: Yes
- Default:
company - Options:
company— A new companyopportunity— A new opportunityinvoice— A new invoice
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.sellsy.kind }}—string. What the trigger watches:company,opportunityorinvoice.{{ data.sellsy.id }}—string. The Sellsy ID of the record created.{{ data.sellsy.createdAt }}—string. The creation time (ISO 8601).{{ data.sellsy.name }}—string. Company and opportunity: the name.{{ data.sellsy.type }}—string. Company: the kind (prospect, customer or supplier).{{ data.sellsy.email }}—string. Company: the email address.{{ data.sellsy.phone }}—string. Company: the phone number.{{ data.sellsy.number }}—string. Opportunity and invoice: the number.{{ data.sellsy.status }}—string. Opportunity and invoice: the status as Sellsy returns it.{{ data.sellsy.amount }}—string. Opportunity: the potential amount.{{ data.sellsy.companyName }}—string. Invoice: the invoiced customer.{{ data.sellsy.totalInclTax }}—string. Invoice: the total including tax (totalExclTaxfor the total excluding tax).{{ data.sellsy.date }}—string. Invoice: the date (dueDatefor the due date,subjectfor the subject).{{ data.sellsy.pdfLink }}—string. Invoice: the link to its PDF (publicLinkfor the public link).
Example
To send each new invoice to the accountant, set Trigger on to “A new invoice”, then a Sellsy invoice node with action = invoice.find, invoiceNumber = {{ data.sellsy.number }} and Fetch the PDF ticked; Compose attaches {{ data.invoice.attachmentPosition }}.
Tips
- Start position. On publication the trigger starts “from now”: nothing earlier is replayed. Each check rereads a short window before the position, so a record indexed slightly late is not lost, and drops what it has already returned.
- Cadence. Between 5 and 1,440 minutes, 15 by default. The instance may impose a higher floor; each check uses requests from the connection’s quota.
- Volume. At most one hundred records per check.
- Testing. Testing from this trigger really queries Sellsy and returns the most recent records, 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.