Email Composer component setup

task brazil Updated Sep 10, 2026 6 min read email-composer-component-uib-setup.md
Raw file servicenow.com

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.

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. For instructions on using the content tree, see Manage UI pages and page variants.

    [Omitted image "email-composer-content-tree.png"] Alt text: 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. The property fields appear in the Config tab in the setup panel on the right.

Parent Topic:UIB Setup Information

Email Composer component properties

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.

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 component events

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

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.

Event descriptions

Event

Description

Email InitialisedDRAFT_INITIALISED

An email record is initializedPayload:

  • table: Table name
  • sys_id: Sys ID of the record
  • subject: Subject of the email

Email draft modifiedDRAFT_MODIFIED

User modifies an email draftPayload:

  • table: Table name
  • sys_id: Sys ID of the record

Email savedDRAFT_SAVE_SUCCEEDED

User selects the Save buttonPayload:

  • table: Table name
  • sys_id: Sys ID of the record

Email sentDRAFT_SEND_SUCCEEDED

User selects the Send buttonPayload:

  • table: Table name
  • sys_id: Sys ID of the record

Email record status changedRECORD_STATUS_CHANGED

Status of an email record changesPayload:

  • table: Table name
  • sys_id: Sys ID of the record
  • status: Record status (Default: inserted)

Email tab header updateFORM_UPDATE_HEADER

Updates the value of the email tab headerPayload:

  • table: Table name
  • sys_id: Sys ID of the record
  • recordDisplayValue: Tab header displa value

Email tab updateUPDATE_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

Resizable pane size changedRESIZABLE_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 subject changedEMAIL_SUBJECT_CHANGED

Dispatch event when email subject changedsubject: Subject value for email record

Search documentation
Search document titles and file paths on the brazil branch