Skip to main content

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​

InputTypeRequiredDefaultWhat it is
SourceStringYesThe loop type (toolkit/loop type) or command (toolkit/command) whose items are watched.
Source inputsDictionaryNoThe source's fields, such as the folder, the sender or subject filter, or the query; keep secrets in a saved connection.
ConnectionStringNoSaved connection that gives the source its address and sign-in.
List outputStringNoFor a command: the output that holds the list; its first list output when empty.
KeyStringNoField that tells items apart, such as id, message_id or sys_id; the whole item when empty.
Changed fieldStringNoAlso run the steps for an item seen before when this field has changed (an updated record).
Include existingBooleanNofalseAlso handle the items there when the loop starts.
Poll (seconds)NumberNo120How often to read the source, in seconds.
Maximum eventsNumberNo0Stop after this many events; 0 = no limit.
Maximum (seconds)NumberNo0Stop waiting after this many seconds in total; 0 = no limit (until the run is stopped or an Exit loop step runs).