Skip to content

Triggers

Triggers define what starts a flow. Required for type: flow, not allowed for type: subflow.

FieldTypeRequiredNotes
typestringYesTrigger type alias (see tables below).
tablestringRecord typesTable name for record-based triggers.
conditionsstringNoSN encoded query filter (e.g., priority=1^active=true).
commentstringNoDeveloper comment.

Fire when a record is created, updated, or both.

TypeWhen it firesRequires table
record_createdRecord is createdYes
record_updatedRecord is updatedYes
record_created_or_updatedRecord is created or updatedYes
trigger:
type: record_created
table: incident
conditions: "priority=1"

Fire on a time schedule.

TypeWhen it fires
dailyOnce per day
weeklyOnce per week
monthlyOnce per month
repeatRecurring interval
run_onceOnce at a specific time
trigger:
type: daily

Fire in response to application events.

TypeWhen it fires
service_catalogService Catalog request submitted
inbound_emailInbound email received
knowledge_managementKnowledge article event
remote_table_queryRemote table query
sla_taskSLA task event
trigger:
type: service_catalog

The conditions field uses ServiceNow encoded query syntax:

trigger:
type: record_updated
table: incident
conditions: "priority=1^state!=7^active=true"

Multiple conditions join with ^ (AND) or ^OR (OR).

Common operators: =, !=, >, <, >=, <=, LIKE, NOT LIKE, STARTSWITH, ENDSWITH, IN, NOT IN, ISEMPTY, ISNOTEMPTY, BETWEEN, CHANGESFROM, CHANGESTO.