---
sourceDocument: Australia Security Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/security-management

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Security Management

ft:clusterId :

    - security

bundleId :

    - security

workflow :

    - Technology


---

# Example Activity Definition: Send email

# Example Activity Definition: Send email {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 6 min. de leitura

The following is an example of Send email activity definition.

## Basic {#example-activity-definition-send-email__section_dhd_jjq_bvb}

The basic details capture the name (label), application, description, table, and from
all the applications it's accessible from.

Add the Automation plan, Activity experience and submit. After submitting, edit the
document to add more details against each tab.

## Automation Plan {#example-activity-definition-send-email__section_sx5_hfq_bvb}

The Automation Plan associates the backend action or subflows built using the flow
designer. This example uses: Send Email - ESCM Activity
subflow.

This subflow enables sending an email. It has the core logic to send an email. It has
all the input fields and output fields defined.

All the input fields are shown within the automation plan section. Each input field
can be enabled to be visible only for the admin, in the standard modal, in the
standard modal and the configuration panel:

* Admin visibility only: when set to admin, only admin can view it.
* Include in standard model: when set to view in the standard modal, it appears only in the properties modal.
* Include in standard model and configuration panel: when set to view in the standard modal and the configuration panel, it appears in the PAD configuration panel as well as in the properties modal. For more information, see [Activity
  definitions](https://www.servicenow.com/docs/access?context=activity-definitions&version=australia&pubname=australia-build-workflows&ft:locale=en-US)

{#example-activity-definition-send-email__ul_w3m_pfq_bvb}

You can define the input fields at the time of activity definition itself, provided
you don't have any need to change these values at the time of configuration. This
helps the business process owner save time while configuring an activity within a
process.

## Activity Experience {#example-activity-definition-send-email__section_d1l_kfq_bvb}

The activity experience tab defines how the activity card is rendered at run time.
The base system provides the following experience types:

* Approval
* Catalog Item
* Create Record
* Instructional
* Knowledge
* List
* Notification
* Record

{#example-activity-definition-send-email__ul_nts_t3r_bvb}

Based on the type of experience you select, the further fields are populated. For
more information, refer the ServiceNow AI Platform documentation.  
In this example, Record type is selected.  
Nota:  
For example, if you want to render a table, you can choose list as the experience type.

## Associated Record {#example-activity-definition-send-email__section_z1h_fgq_bvb}

Use this record to store the associated data pertaining to the current activity. This would capture the run time data, as well the status of the experience.

* Associated table: Flow Data
* Associated Record: VL
* Experience status table: Flow Data
* Experience Status record: VL
{#example-activity-definition-send-email__ul_hnn_hgq_bvb}  
In this example, Flow data table is used to capture the run time data. The run time data can vary based on the use case. In this example, the run time data are fields like To, cc, Subject, and body. For each use case, a flow data definition needs to be created to define the type of the run time data.

1. Navigate to the left pane and enter sys_flow_data_definition.list. It displays the list of definitions created for the flow data table.Figura 1. Associate record
2. Open Email - SCM Def to view the definition related to this example.Figura 2. Email - SCM Def This flow data definition must be used by the subflow or the action that is associated with this activity definition (Refer automation plan) to capture the run time data.Figura 3. Activity Definitions
3. In this example, open the subflow: Send Email - ESCM Activity. Under Create Flow Data step, the flow data definition you created is mapped against the Definition field. This flow data record is used across the subflow. In this example, the activity card status (experience status) is captured in the flow data table.Figura 4. Send Email - ESCM Activity

{#example-activity-definition-send-email__ol_hkg_kgq_bvb}  
Nota:  
If you want to capture the runtime data in a different table record other than flow data table, say for example in a response task. You can select the associated table as Response task table. The associated record should be set to response task record created by the subflow.

Similarly, experience status table captures the status of the activity card. In the
base system, the state field of the flow data table is mapped to the activity card
status. So, when flow data table is used to capture the experience status, it
automatically updates the activity card status. You could also use a different table
other than flow data table to capture the experience status.  
For example, if you would want to map the response task status to the activity card status then that is possible. To do so:

1. Navigate to AllPlaybook Experiences.Figura 5. Playbook experiences
2. Open SIR Playbook experience.
3. Open Status Mapping related list.Figura 6. Playbook experience
4. Enter the Response Task against Experience Status Table field.
5. Enter the State against Experience Status field.Figura 7. Experience Status
6. Click Submit. The record is created.Figura 8. Playbook Experience Status Mapping
7. Under Experience Status to Activity State, map the states of response task to activity card status.
8. The left side shows the states of the Response Task, and the right side shows the activity card status.Figura 9. Playbook Experience Status Mapping
9. The mapping can be bi-directional. Under Activity State to Experience related list as well, map the statuses correctly. This step is the reverse of the previous step. In this case, the left side shows the activity card status, and the right side shows the response task status.Figura 10. Playbook Experience Status Mapping
{#example-activity-definition-send-email__ol_unw_fhq_bvb}

## Details {#example-activity-definition-send-email__section_uyw_yhq_bvb}

* Tag Line: Send Email
* Icon: Envelope outline (not shown in the user interface)
* Title: ActivityActivity InstanceLabel. Here we have selected the activity instance's label. This dot-walking will replace the label value as the title dynamically at run time.
* Description: ActivityActivity InstanceDescription. Here we have selected the activity instance's description. This dot-walking will replace the label value as the title dynamically at run time.
* Pending State Title: Send an email notification. This is the title when the activity is in Pending status.
* Pending State Description: Prompts for confirmation of email subject and body before sending. This is the description of the activity card when the status is pending Record Fields: There are record fields selected in this example.Record Fields are comma-separated list of field names to display
  for the associated record in a name-value pair list. Data is pre-fetched on
  the server, dot-walking is supported and 
  canRead() permissions are evaluated on each
  field.

* Footer: There's no footer defined for this example.Footer is a text in a gray
  area of the card footer. You can add any meaningful information to
  shown.

  Figura 11. Activity Definition - Send Email
{#example-activity-definition-send-email__ul_gb5_13q_bvb}

## Form {#example-activity-definition-send-email__section_amt_23q_bvb}

* Form View: collect_data
* Form Fields:
{#example-activity-definition-send-email__ul_qgl_43q_bvb}This example uses collect_data view to show the fields that must be presented to the user to enter inputs. Collect_data view is a platform provided view corresponding to flow data table. Alternatively, you could leave Form View as empty, and select Vars from the list of values available against Form Fields. (click the lock icon to open the list of available values).
Figura 12. Form view

## Attachments {#example-activity-definition-send-email__section_e42_t3q_bvb}

In this example:

* Attachment Source is empty.
* Attachment Read only not selected.

{#example-activity-definition-send-email__ul_hjq_53q_bvb}

1. Attachment Source - Drop down. What attachments to show on the card: Those attached to the Parent Record, the Associated Record, or none.
2. Attachment Read only - True or False. Prevent the user from renaming or deleting the existing attachments.

{#example-activity-definition-send-email__ol_qt5_w3q_bvb} Figura 13. Activity Definition - Send Email

## Features {#example-activity-definition-send-email__section_v4f_1jq_bvb}

In this example,

* Show SLA - Cleared
* Show Checklist - Cleared
* Is Automated - Cleared
{#example-activity-definition-send-email__ul_vbg_2jq_bvb}  
Show SLA: True / False. Renders an SLA timer in the header of the card for the Associated Record. The SLA is chosen according to the SLA Configuration record specified in the Playbook configuration.

1. Show Checklist  - True or False. Renders any checklist that is attached to the Associated Record. The checklist is editable and changes are saved without requiring a Declarative Action.
2. Is Automated - True or False. If true, then the  tagline  and  icon  will be overridden with the text Automated Task and an automated icon.

{#example-activity-definition-send-email__ol_tg1_hjq_bvb} Figura 14. Activity Definition - Send Email Form

## Playbook Actions in Activity Definition {#example-activity-definition-send-email__section_evh_jjq_bvb}

This section has the actions that will be rendered on the activity card. This example has Skip, and Send Email as actions.  
To add a new action to the activity card, you must create a record in the Playbook Actions related list present at the bottom of the page.Figura 15. Playbook Actions

1. Click New.
2. Select existing activity action against Action Assignment field.
3. Select SIR Playbook Experience against Playbook Experience field.
{#example-activity-definition-send-email__ol_mgh_njq_bvb}
* **[Create an Activity Action](https://servicenow-prod.fluidtopics.net/4U0ACM6VAUQfV6Y_57sp_A)**   
  Following is procedure to create an activity action.

