Optional$overrideAction type that creates or updates a record. Default: 'record_action'
OptionalactiveWhether the inbound email action is active. Default: false
OptionalassignmentAssignment operator for field actions. Only available for 'record_action' action type.
OptionalconditionCondition that must evaluate to true for the action to execute. If you include the condition in the script itself, leave this field blank.
OptionaldescriptionDocumentation explaining the purpose and function of the action
OptionaleventEvent name that triggers this action. Default: 'email.read'
OptionalfieldField action template defining field values to set on the target record. Uses ServiceNow's encoded query format with special syntax for dynamic values:
field=value (e.g., active=true, priority=1)field=<sys_id> (e.g., assigned_to=62826bf03710200044e0bfc8bcbe5df1)field=YYYY-MM-DD HH:MM:SS (e.g., activity_due=2026-03-17 00:00:00)fieldDYNAMIC<sys_id> (e.g., short_descriptionDYNAMICb637bd21ef3221002841f7f775c0fbb6)fieldDYNAMIC<sys_id1>,<sys_id2>,<sys_id3> (e.g., additional_assignee_listDYNAMIC0a826bf03710200044e0bfc8bcbe5d7a,be82abf03710200044e0bfc8bcbe5d1c)123TEXTQUERY321=value^ between fields, ending with ^EQExample: field1DYNAMIC<sys_id1>^static_field=value^field2DYNAMIC<sys_id2>^field3DYNAMIC<sys_id3>^EQ
Only available for 'record_action' action type. Note: Can only be used when 'table' field is specified.
OptionalfilterEncoded query string to filter which records this action applies to
OptionalfromRestrict this action to emails from a specific user. Accepts a GUID string or a Record object.
OptionalnameName of the inbound email action
OptionalorderExecution order when multiple inbound actions match. Default: 100
OptionalprotectionControls edit/view access for other developers after the application is installed.
OptionalreplyHTML content for auto-reply emails sent back to the sender. Only available for 'reply_email' action type.
OptionalrequiredList of roles the sender must have for this action to trigger
OptionalscriptScript executed when the action triggers. Five objects are available in this script:
current: a GlideRecord — the target record being created or updatedevent: a GlideRecord — the sysevent recordemail: an EmailWrapper — the inbound emaillogger: a ScopedEmailLogger — for logging email processing activityclassifier: an EmailClassifier — for classifying the emailConsider using Now.include() to move the script to a separate .js file or using a function exported from your src/server modules.
OptionalstopWhen true, stops processing subsequent inbound email actions after this one executes. Default: false
OptionaltableTarget table the action operates on (e.g., 'incident', 'sc_req_item')
OptionaltypeWhen to trigger: on new emails, replies, or forwards. Default: 'new'
Set properties not directly supported by this API.