---
sourceDocument: Brazil Build or modify applications
sourceDocumentLink: https://www.servicenow.com/docs/r/application-development

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Email Composer component setup

# Email Composer component setup {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read  
The Email Composer component enables requestors and fulfillers to use email to communicate. The component is associated with a record to include conversations as part of the
record.

## Before you begin

This task assumes you have placed the component on the page and are ready to configure the properties and events. For instructions on accessing and using features in UI Builder, see [Customize UI Builder pages using components](https://www.servicenow.com/docs/YMtTz79hYjmj5_kMcObIuA "Learn what a component is in UI Builder. Also, see how components work within UI Builder.").  
Note:  
This document describes the latest component functionality. Go to the store to make sure you have the latest version of the component.

Role required: admin or ui_builder_admin

## Procedure

1. Define a label for your Email Composer that differentiates it from other components in the content tree.  
   A label makes finding the component easier in a large list of components. For instructions on using the content tree, see [Manage UI pages and page variants](https://www.servicenow.com/docs/Hq7OFdFRjvDFnNsfdtsMGw "Learn what a page is in UI Builder. Understand the building blocks of a UI Builder page, such as column layouts and components.") . For instructions on using the content tree, see [Manage UI pages and page variants](https://www.servicenow.com/docs/Hq7OFdFRjvDFnNsfdtsMGw "Learn what a page is in UI Builder. Understand the building blocks of a UI Builder page, such as column layouts and components.") .

   ![Email Composer content tree.]()  
2. Select the Email Composer component, using one of these methods:
   * Click anywhere within the component.
   * Select the Email Composer label you created for your component in the content tree.

   {#email-composer-component-uib-setup__choices_sg1_wrl_4nb}  
   The property fields appear in the Config tab in the setup panel on the right.
{#email-composer-component-uib-setup__steps_rg1_wrl_4nb}

## Email Composer component properties {#ariaid-title2}

Configure the tables and properties for your Email Composer component.
To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

* Data binding: Creates dynamic property values from multiple sources. Sources include state variables (@state), URL variables (@context), or data resource payloads (@data). For details, see [Add and configure data resources to a
  page](https://www.servicenow.com/docs/~B53KgSqh6jyRj9wmzg8LA "Add data resources to dynamically expose data from tables, records, or other elements on your page in UI Builder.") .
* Scripting: Creates a scripted property value. For details on scripted values, see [Create and bind a client state parameter to a component](https://www.servicenow.com/docs/JxkxcsWDJlkywLr4rc~p8A "Create and bind a client state parameter value to a component in UI Builder. By adding custom values to your components, these components can then be automatically updated through a script.") .
{#email-composer-config-properties__choices_4jq_bp0_csl}
{#email-composer-config-properties__table_y5l_mvl_4nb__entry__2}

| Label \[property\] | Description |
|-|-|
| Sys ID \[sysID\] | Unique identifier of the sys_email_draft record to fetch. Use -1 to create a new record. |
| Target table \[targetTable\] | Name of target table for this record. |
| Target record \[targetRecord\] | Unique identifier of the associated record. |
| Response type \[replyType\] | The reply type for a response message. The possible types are: Reply, Reply all or Forward. |
| Email record ID \[replyId\] | Unique identifier of the sys_email record for a response message |
| Show minified composer \[isCompact\] | Type of email composer to load. Loads either the full composer or the mini composer (compact). When true, the mini composer loads. Default: false |
| Show email details \[showEmailDetails\] | Toggle to display or hide the email details, including the To, Cc and Bcc fields. Default: false |
| Enable horizontal layout \[forceHorizontalLayout\] | Displays the field labels horizontally. For use with Modeless dialog only. Default: false |
| Template details \[templateDetails\] | Details of the template to be applied. |
| Allow email creation \[showCreateNewEmail\] | Displays the Create new email button. Default: true |
| Allow discarding \[showDiscardDraft\] | Displays the Discard draft button. Default: true |
| Link details \[insertLinkInEmail\] | Link details to add in the email. Inserts the message in the last active cursor position. |
| Allow managing drafts \[showViewDrafts\] | Displays the Manage drafts button. Default: true |
| Allow attachments \[showAttachments\] | Displays the Attach files button. Default: true |
| Send email button variant \[sendEmailButtonVariant\] | Sets the style variant for the Send email button. Options are primary, secondary, and tertiary. Default: primary |
| Fix resizable pane \[sidebarDisabled\] | Prevents the user from resizing the sidebar panes by moving the divider. Default: false |
| Enable mentioning users \[enableMentioningUsers\] | Enable user mentions in the email compose area. Default: true |
| Column layout property value \[columnLayout\] | Sets the column layout value of the connected component. |
| Initiate send email \[initiateSendEmail\] | Triggers the send action. Default: false |
| Default divider position \[sidebarDefaultDividerPosition\] | Sets the default location of the sidebar divider using a number between 0 and 100. To place the divider all the way to the left, enter 0. To place the divider all the way to the right, enter 100. To place the divider exactly in the middle of the panes, enter 50. |
| Pane minimum width \[sidebarRightPaneConstraints\] | Sets the minimum width of the right pane of the sidebar. You can set this value as a range of 0 to 100 and/or as a number of pixels. Enter a JSON string in the format `{minRatio:number, minPixels:number}`. |
| Pane-sidebar ratio \[sidebarRatioPreference\] | Sets the user preference for the ratio of sidebar inside the right pane of the resizable panes. When set, this ratio is used every time that user access the email composer. |
| Hide Send Button \[hideSend\] | Hides the Send email button. Default: false |
| Load latest draft \[loadLatestDraft\] | Loads the latest saved draft or sys_email_draft record. Default: false |
[ ]

{#email-composer-config-properties__table_y5l_mvl_4nb}

## Email Composer component events {#ariaid-title3}

Select event handlers to configure the actions (events) provided with the Email Composer component.
The Events tab shows the events used by the Email Composer component. To view the available events, select + Add event mapping. Select the event in the list to add one or more event handlers.

### Event handlers {#email-composer-config-events__section__dpw_5kx_wki}

Event handlers work with data resources to link the Email Composer actions to the data you want to display to your users. Select the event in the list to add one or more event handlers.

For instructions on adding event handlers to an event, see [Configure an event handler](https://www.servicenow.com/docs/8s23OEG1s5oowl~vaOUlLw "Add an event handler to a page, component, data resource, or declarative action within UI Builder so that your user can trigger an action.").

### Event descriptions {#email-composer-config-events__section_vg2_qc3_twb}

{#email-composer-config-events__table_bkk_3xl_4nb__entry__2}

| Event | Description |
|-|-|
| Email Initialised DRAFT_INITIALISED | An email record is initialized Payload: * table: Table name * sys_id: Sys ID of the record * subject: Subject of the email {#email-composer-config-events__ul_psz_cwg_jtb} |
| Email draft modified DRAFT_MODIFIED | User modifies an email draft Payload: * table: Table name * sys_id: Sys ID of the record {#email-composer-config-events__ul_kkl_qxg_jtb} |
| Email saved DRAFT_SAVE_SUCCEEDED | User selects the Save button Payload: * table: Table name * sys_id: Sys ID of the record {#email-composer-config-events__ul_r5m_5xg_jtb} |
| Email sent DRAFT_SEND_SUCCEEDED | User selects the Send button Payload: * table: Table name * sys_id: Sys ID of the record {#email-composer-config-events__ul_znz_yxg_jtb} |
| Email record status changed RECORD_STATUS_CHANGED | Status of an email record changes Payload: * table: Table name * sys_id: Sys ID of the record * status: Record status (Default: inserted) {#email-composer-config-events__ul_bsj_fyg_jtb} |
| Email tab header update FORM_UPDATE_HEADER | Updates the value of the email tab header Payload: * table: Table name * sys_id: Sys ID of the record * recordDisplayValue: Tab header displa value {#email-composer-config-events__ul_m1z_tyg_jtb} |
| Email tab update UPDATE_ONE_TAB | Closes out the workspace email tab * type: Type of action (Default: UPDATE_ONE_TAB_CLOSE) * tab_id: Workspace tab ID of the record {#email-composer-config-events__ul_oxb_mzg_jtb} |
| Resizable pane size changed RESIZABLE_PANES_SIZE_CHANGED | Sets the sidebar ratio when the user changes the pane size * sidebarRatio: Ratio of the sidebar panes * sidebarRatioPreference: User's preference for the ratio of the sidebar panes {#email-composer-config-events__ul_gtj_yzg_jtb} |
| Email subject changed EMAIL_SUBJECT_CHANGED | Dispatch event when email subject changed subject: Subject value for email record |
[ ]

{#email-composer-config-events__table_bkk_3xl_4nb}

