Send Email step
Summarize
Summary of Send Email step
The Send Email step in Workflow Studio enables you to send emails to specified users or groups as part of a flow. This action step is designed for users with theactiondesignerrole, allowing them to create custom actions incorporating one or more steps, including sending emails.
Show less
Inputs
You must provide specific inputs to configure the email properly:
- Target Record: The record associated with the email; replies update this record.
- Table: The table containing the target record.
- To: Main recipients’ email addresses, entered as comma- or space-separated strings or via data pills (e.g., user or group emails). To email a group, provide a group email address; to email group members, the group must have the "Include members" option enabled.
- CC: Additional recipients copied on the email, accepting email addresses or data pills.
- BCC: Blind copy recipients, also accepting email addresses or data pills.
- Subject: Email subject text or data pills.
- Body: Email message content supporting text and data pills with inline formatting. Note that email template variables (e.g., ${number}) must be replaced with data pill references manually as the step does not process them.
- Action error evaluation: Option to define whether to continue or stop flow execution if the email step fails, useful for custom error handling.
Important: The number of recipients must not exceed the limit set by the glide.email.smtp.maxrecipients system property.
Outputs
The step outputs an Email record representing the created email, which is available in the Data panel for use in subsequent actions or steps within the flow.
Testing and Access Considerations
- To verify email generation during testing, review the email record in the Email [sysemail] table; the Headers field indicates success.
- Access control rules apply to the Send Email action. If the flow runs as the session user, ensure that user has email access.
- For testing access controls, impersonate a typical email sender and manually trigger the flow.
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.
- 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: 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.