Each new e-mail, record or item
Read a loop type (such as Each email in a mailbox, Outlook, Exchange or Gmail) or a command's list (such as ServiceNow Query records) again and again, and run the nested steps for each item not seen before, or changed since.
Loop type in the Trigger Loop toolkit · id ooa.triggerloop/new_items · 10 inputs (1 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Source | String | Yes | The loop type (toolkit/loop type) or command (toolkit/command) whose items are watched. | |
| Source inputs | Dictionary | No | The source's fields, such as the folder, the sender or subject filter, or the query; keep secrets in a saved connection. | |
| Connection | String | No | Saved connection that gives the source its address and sign-in. | |
| List output | String | No | For a command: the output that holds the list; its first list output when empty. | |
| Key | String | No | Field that tells items apart, such as id, message_id or sys_id; the whole item when empty. | |
| Changed field | String | No | Also run the steps for an item seen before when this field has changed (an updated record). | |
| Include existing | Boolean | No | false | Also handle the items there when the loop starts. |
| Poll (seconds) | Number | No | 120 | How often to read the source, in seconds. |
| Maximum events | Number | No | 0 | Stop after this many events; 0 = no limit. |
| Maximum (seconds) | Number | No | 0 | Stop waiting after this many seconds in total; 0 = no limit (until the run is stopped or an Exit loop step runs). |