English
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
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 claimclaim.updated— An updated claimcontract.created— A new policycontract.updated— An updated policyclient.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.updatedorclient.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 (withcontractCodefor a claim).{{ data.adhoc.createdAt }}—string. The creation date (updatedAtfor 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.