Email Composer \(mini\) component setup

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

Email Composer (mini) renders the email composer in smaller spaces and within another component, such in a side panel on a record page. The mini component shows fewer details, but can be expanded to show the To, Cc, and Bcc fields.

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.

For instructions on overriding styles using the Styles pane, see Change the default appearance of components.

Role required: admin or ui_builder_admin

Procedure

  1. Define a label for your Email Composer (mini) 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.

    [Omitted image "email-composer-mini-content-tree.png"] Alt text: Shows the email composer mini component in the UI Builder content tree

  2. Select the Email Composer (mini) component, using one of these methods:

    • Click anywhere within the component.
    • Select the Email Composer (mini) 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 (mini) component properties

Configure the Email Composer (mini) component to display in a collapsed or expanded state when the page loads.

To configure the properties, enter either static or dynamic input. Enter dynamic input by selecting the input type.

Label [property]

Description

Sys ID[sysId]

Sys ID of the email_draft 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 if the email is a response draft. 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 email details[showEmailDetails]

Toggle to display or hide 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.

Link details[insertLinkInEmail]

Link details to insert in email. Inserts message in the last active cursor position of email.

Allow pop out[showPopOut]

Displays the pop-out option.Default: true

Send email button variant[sendEmailButtonVariant]

Style variant for the Send email button. Default: secondary

Allow email creation[showCreateNewEmail]

Displays the Create new email button.Default: true

Allow discarding[showDiscardDraft]

Displays the Discard draft button.Default: true

Allow managing drafts[showViewDrafts]

Displays the Manage drafts button.Default: true

Allow attachments [showAttachments]

Displays the Attach files button.

Show recent drafts [showRecentDrafts]

Displays the Recent drafts button.

Show email templates [showEmailTemplates]

Displays the Email templates button.

Fit to parent[fitToParent]

Fits email client to its parent height.Default: false

Enable mentioning users[enableMentioningUsers]

Enable user mentions in the email compose area.Default: true

Icon[popoutIcon]

Defines the icon for the popout button.

Extra params[extraParams]

Passes URL extra param values to email client to decode.

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

Suppress global events[suppressGlobalEvents]

Suppresses events that rely on parent elements handling and only dispatches events that are manually binded.

## Email Composer \(mini\) component events

Select event handlers to configure the actions (events) provided with the Email Composer (mini) component.

The Events tab shows the events used by the Email Composer (mini) 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 (mini) 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 draft has been rendered and initialized.Payload:

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

Email draft modifiedDRAFT_MODIFIED

User modifies an email draft.Payload:

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

Email savedDRAFT_SAVE_SUCCEEDED

User selects the Save button.Payload:

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

Email popped outEMAIL_CLIENT_POP_OUT_BUTTON_CLICKED

The user has selected the popout button and opened the email in another workspace tab.

Email sentDRAFT_SEND_SUCCEEDED

User selects the Send buttonPayload:

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

Email attachment addedATTACHMENTS_ADDED

The user adds attachments to the email for the first time.

Preview RecordPREVIEW_RECORD

The user selects the popout control and the email is saved successfully.Payload:

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

Email subject modifiedEMAIL_SUBJECT_CHANGED

Dispatch event when email subject changedPayload:

subject: Subject value for email record

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