Skip to content

AdHoc — new record ​

Starts the workflow when a claim is reported or updated, a policy created or updated, or a client created in AdHoc. The record lands in data.adhoc, with no triggering email.

The AdHoc — new record trigger checks AdHoc at regular intervals and starts one run per claim reported or updated, policy created or updated, or client created, depending on the Trigger on setting. It reads the list of the chosen object filtered on the creation or modification date. AdHoc has no webhook and no change feed: this check is the only way.

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.adhoc · 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: AdHoc
  • Outputs: main
The ports of “AdHoc — new record”: what comes in on the left, what goes out on the rightIt starts runs: no input. Outputs: main. It needs a AdHoc connection.AdHoc — new recordtrigger.adhocEventmainConnection: AdHoc
The ports of “AdHoc — new record”: what comes in on the left, what goes out on the right

Connection ​

This node needs a AdHoc connection.

Parameters ​

connection ​

AdHoc connection — The AdHoc connection to use. Create it once in Connections; its key never appears in the workflow.

  • Type: Connection (credential)
  • Required: Yes
  • Default: "" (empty)

event ​

Trigger on

  • Type: One choice (options)
  • Required: Yes
  • Default: claim.created
  • Options:
    • claim.created — A new claim
    • claim.updated — An updated claim
    • contract.created — A new policy
    • contract.updated — An updated policy
    • client.created — A new client

everyMinutes ​

Check every (minutes)

  • Type: Number (number)
  • Required: No
  • Default: 30
  • 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.adhoc.event }} — string. What the trigger watches: claim.created, claim.updated, contract.created, contract.updated or client.created.
  • {{ data.adhoc.code }} — string. The AdHoc code of the claim, policy or client, to pass to the AdHoc node.
  • {{ data.adhoc.clientCode }} — string. Claim or policy: the client code (with contractCode for a claim).
  • {{ data.adhoc.createdAt }} — string. The creation date (updatedAt for the last change).
  • {{ data.adhoc.status }} — string. The AdHoc status code of the record.
  • {{ data.adhoc.record }} — object. The full record, without social security number or bank details.

Example ​

To alert the account manager of each new claim, leave Trigger on at “A new claim”, read the policy with the AdHoc node (contract.get, code {{ data.adhoc.contractCode }}), then send the summary.

Tips ​

  • Start position. On publication, the first check records what already exists without triggering anything: nothing earlier is replayed. An item arriving between publication and that first check is absorbed by it.
  • By day. AdHoc date filters work by day: each check rereads the previous day and today (Paris time) and only reports what it has never seen. A change is recognised by the pair of code and modification date: when AdHoc only dates by day, a record changed several times in a day triggers once.
  • Cadence. Between 5 and 1,440 minutes, 30 by default: the AdHoc server is shared with the account managers. The instance may impose a higher floor.
  • Volume. At most one hundred items per check.
  • Out of scope. Premium notices, settlements and documents have no modification filter in the API: no trigger for them.
  • 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.

Loop & Roll — the workflow builder for email.