StyloDocs
Workflow blocks

Outlook

Trigger workflow when new emails are received in Outlook

View as Markdown

trigger/outlook — Trigger workflow when new emails are received in Outlook.

Where it appears

The Outlook block is a trigger — it starts a workflow. Add it from the Triggers group in the Workflow Builder.

Fields

FieldTypeRequiredDefaultDescription
pollingIntervalselectYes5minHow often Stylo checks the Outlook mailbox for new messages. Options: 1min, 5min, 15min, 30min, 1hour.
searchQuerytextNoSearch terms to filter which incoming emails trigger the workflow. Leave empty to fire on any new email.
markAsReadtoggleNofalseWhen enabled, matched emails are marked as read in Outlook after triggering the workflow.

Inputs and outputs

Inputs are the configurable fields above. The block produces these outputs:

Outputs

Reference an output downstream with <Outlook.field>.

NameTypeDescription
triggeredbooleanWhether trigger fired
timestampstringTrigger timestamp
emailjsonEmail data (object — fields: subject, from, to, body, date)

Example

A minimal configuration for this block:

{
  "type": "trigger/outlook",
  "config": {
    "pollingInterval": "5min",
    "markAsRead": false
  }
}

Limits and failure modes

  • Requires a connected Microsoft integration. Calls fail if that integration is disconnected or its authorization has expired.
  • Required field (pollingInterval) must be set, or the block fails validation before it runs.

On this page