Send Email step

  • Release version: Zurich
  • Updated July 31, 2025
  • 3 minutes to read
  • Summarize
    Summarized using AI
    This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.

    Summary of Send Email step

    The Send Email step in Workflow Studio allows you to send emails to specified users or groups as part of an automated flow in ServiceNow. It is available to users with theactiondesignerrole who are creating custom actions with one or more steps.

    Show full answer Show less

    Inputs

    This step requires several inputs to configure the email:

    • Target Record: The record (document ID) that the email is associated with. Replies to the email update this record.
    • Table: The table containing the target record.
    • To: Main email recipients entered as a comma- or space-separated list of email addresses or data pills (like User or Group email). For groups, use a group email address or ensure "Include members" is enabled to send to group members.
    • CC: Additional recipients copied on the email, entered similarly as email addresses or data pills.
    • BCC: Blind copied recipients, visible only to the sender, entered similarly.
    • Subject: Email subject text or data pill references.
    • Body: Email message content supporting text and data pills with inline styles. Note that traditional Email Template variables are not processed; replace them with data pill references.
    • Action Error Evaluation: Option to continue or halt the flow if the email step fails, enabling custom error handling.

    Note: The total number of email recipients must not exceed the limit set by the glide.email.smtp.maxrecipients system property.

    Outputs

    After execution, the step outputs an Email record, which can be used as input in other action steps or flows.

    Testing and Access Control

    • To verify email sending during testing, check the email record in the sysemail table. Successful generation is indicated in the Headers field.
    • Access controls apply; ensure the user running the flow has permission to send emails. Testing with impersonation helps validate these permissions.

    Send an email to specified users or groups as an action in a flow.

    Roles and availability

    Available as an Workflow Studio action step. Users with the action_designer role can create a custom action with one or more action steps.

    Inputs

    Provide a value for each input that your flow needs. To add dynamic values, you can also drag and drop pills from the Data panel or select them from the pill picker.

    Target Record
    Data type: Document ID

    Record that the email is associated to. When a user sends a reply to your email, the target record is updated with the reply email content.

    Table
    Data type: Table Name

    Table containing the target record.

    To
    Data type: String

    The main recipients of the email. Enter a list of user email addresses separated by commas or white spaces. You can also drag data pills that contain email addresses into the field, such as a User or Group record. For example, if you want to send an email to the group assigned to the incident, drag the [Assignment group] data pill from the data panel.

    To send email to a group, you must provide a Group email address. To send email to group members, the group must have the Include members option enabled.

    Note:
    The number of email recipients must be equal to or less than the maximum number set by the glide.email.smtp.max_recipients system property. See Minimize SMTP Recipient Quantity [Updated in Security Center 1.3] for information about setting this value.
    CC
    Data type: String

    Additional recipients copied on this email. Enter a list of user email addresses separated by commas or white spaces. You can also drag data pills that contain email addresses into the field.

    BCC
    Data type: String

    Additional recipients of this email, who are visible only to the sender (blind copied). Enter a list of user email addresses separated by commas or white spaces. You can also drag data pills that contain email addresses into the field.

    Subject
    Data type: String

    Subject of the email. You can enter text or drag data pills into the field.

    Body
    The content of the message body. You can enter text or drag data pills into the field. The editor formatting options add inline styles. There is no style sheet associated with an email body. You can add your own inline style sheet to this HTML input.
    Note:
    You can partially reuse content from the Email Template [sysevent_email_template] table with some manual editing. The Send Email action can't process Email template variables, which are strings that start with the dollar sign character and include content in curly braces. You must replace email variables with references to data pills. For example, replace the string ${number} with a data pill reference to an incident record number.

    Action error evaluation

    If this step fails
    Data type: Choice

    Option to continue running the next step or go to error evaluation. To use the step status code or message for a custom action error condition, see Action error evaluation.

    Outputs

    These outputs appear in the Data panel. You can use them as inputs elsewhere in your action or flow.

    Email
    Data type: Record

    Email record created.

    Testing the email step

    To verify that the email was generated when testing the action, review the email record in the Email [sys_email] table. The Headers field indicates whether the email was successfully generated. For example:Email header generated by the Send Email action ACL restrictions apply to the Send Email action. If you configured your flow to run as the user who initiates the session, ensure that the user can access email. To test access controls for a Send Email action, impersonate a typical email sender and manually trigger the flow.