---
sourceDocument: Xanadu Customer Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/customer-service-management

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Customer Service Management

ft:clusterId :

    - csm

bundleId :

    - csm

workflow :

    - Customer and Industry


---

# Configure email and comment notifications

# Configure email and comment notifications {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 8, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

As an admin, you can add a script to notification and reply templates so that the activity shown in the thread matches the value set in \[number_of_activities_in_notification\].

## Before you begin

Role required: admin

## About this task

You can use the script to update the number of activities shown in any notification and reply template. The `case.commented.for.customer` and `reply-recieved` templates are only two examples.

## Procedure

1. To update comment notifications, do the following:
   1. Navigate to AllSystem NotificationsNotifications.
   2. In the Email template column, enter `case.commented.for.customer`.
   3. In the `case.commented.for.customer` template, add the following script to the Message HTML field: `${mail_script:get_emails_comments_activity_history}`, and save.
   {#config-email-notifications__substeps_yvz_kcg_3cc}
2. To update email notifications, do the following:
   1. Navigate to AllEmail client templatesReply.
   2. In the `reply-recieved` template, add the following script to the Body HTML field: `${mail_script:get_emails_comments_activity_history}`, and save.
   {#config-email-notifications__substeps_l2t_3hg_3cc}

## Result

Emails and comments match the value set in \[number_of_activities_in_notification\].

*[\>]: and then


