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

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Auto populate information from email to legal request or matter

# Auto populate information from email to legal request or matter {#ariaid-title1}

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

Map the sender's email address, email content, and subject field from an email to legal request fields to automatically fill in information from the email to the submitted legal request.

## Before you begin

Role required: sn_lg_ops.legal_config

## About this task

The script include OutlookMappingConfig available in the base system supports the mapping of the following variables of the email.

* <var class="keyword varname">subject</var> - Subject of the email.
* <var class="keyword varname">fromEmail</var> - Sender's email address.
* <var class="keyword varname">body</var> - Email content
{#lsd-outlook-adddin-map-fields__ul_pzj_yp5_wbc}

## Procedure

1. Navigate to AllSystem DefinitionScript Includes.
2. Select the OutlookMappingConfig.
3. In the Script field, specify the mappings.

   | Variables from email | Variables from legal request |
   | subject | Specify the legal request variable into which you want to store the email subject line. Example: If you want to copy the subject of email into the short description of the legal request, map <var class="keyword varname">subject</var> with <var class="keyword varname">short_description</var> by including the following code. short_description: "subject" |
   | fromEmail | Specify the legal request variable into which you want to store the sender's email address. Example: If you want to copy the sender's email address into the requested for of the legal request, map <var class="keyword varname">fromEmail</var> with <var class="keyword varname">requested_for</var> by including the following code. requested_for: "fromEmail" |
   |-|-|

   {#lsd-outlook-adddin-map-fields__choicetable_phr_kxb_gzb}

   | Variables from email | Variables from legal request |
   | subject | Specify the legal request variable into which you want to store the email subject line. Example: If you want to copy the subject of email into the short description of the legal request, map <var class="keyword varname">subject</var> with <var class="keyword varname">short_description</var> by including the following code. short_description: "subject" |
   | fromEmail | Specify the legal request variable into which you want to store the sender's email address. Example: If you want to copy the sender's email address into the requested for of the legal request, map <var class="keyword varname">fromEmail</var> with <var class="keyword varname">requested_for</var> by including the following code. requested_for: "fromEmail" |
   | body | Specify the legal request variable into which you want to store the email content. Example: If you want to copy email content into the description, map <var class="keyword varname">body</var> with <var class="keyword varname">description</var> by including the following code. description: "body" |
   |-|-|

   {#lsd-outlook-adddin-map-fields__choicetable_mdk_wvs_xcc}

*[\>]: and then


