Add the email templates tab to a record page in UI Builder
If your workspace does not use the latest version of the standard record page, add the tab for email templates manually in UI Builder.
Before you begin
Role required: email_client_admin
If your workspace is built using the standard record page, the email templates tab is available by default and manually adding the email templates tab in UI Builder is not needed.
Procedure
-
Open a record page in UI Builder:
- Add a tab for email templates to the sidebar by selecting + Add component under the Tab sidebar.
- Add a Tabs component.
-
In the Tab Settings panel, add the following settings for each field.
Field name Configuration Tab label Enter Email Templates. Icon Select Envelope Plus Outline. Hide tab Enter IF(@data.record.isEmailClientEnabled,false,true). - Select Create.
-
Configure Agent Assist to apply contextual search:
- Navigate to .
- Select + Add component, and select Agent Assist.
-
Note:Change the Table config property to Email Templates [global] in the Agent Assist panel.If Agent Assist presets are available, the following fields will auto-fill. These steps are only needed if Agent Assist presets are not available.
- Open the Events tab, and select + Add event handler under Apply Email Template.
-
Note:Select [Record] Request Email Action, and configure the following properties within its panel.If Agent Assist presets are available, this field will auto-fill. This step is only needed if Agent Assist presets are not available.
Field name Configuration Sys ID Enter -2. Target table Enter @payload.params.sysparm_parent_table. Target record Enter @payload.params.sysparm_parent_sys_id. Reply Type Enter @data.record.activityStream.composeEmailInfo.replyType. Reply ID Enter @data.record.activityStream.composeEmailInfo.replyId. Should focus email tab Select to activate. Template details Enter @payload.templateDetails.