Auto populate information from email to legal request or matter

task australia Updated Sep 10, 2026 1 min read lsd-outlook-adddin-map-fields.md
Raw file servicenow.com

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.

  • subject - Subject of the email.
  • fromEmail - Sender's email address.
  • body - Email content

Procedure

  1. Navigate to All > System Definition > Script Includes.

  2. Select the OutlookMappingConfig.

  3. Define the email mapping with the intake forms of the practice area.

    1. Open the script include.

    2. Copy and paste the existing mapping object into the script field.

    3. Copy the sys_id of the intake form of the practice area that you want to map to the email.

    4. Replace the object key with the copied sys_id.

      [Omitted image "defining-email-mapping-with-intake-forms.jpg"] Alt text: Defining the email mapping with the intake forms in the script include.

  4. In the copied mapping object, specify the key-value pairs using the variables from the intake form.

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 subject with short_description by including the following code.``` short_description: "subject"

Text
</td></tr><tr><td id="d236398e201">
**fromEmail**
</td><td>
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 *fromEmail* with *requested\_for* 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 body with description by including the following code.``` description: "body"

Text
</td></tr></tbody></table>5.  After defining the object, select **Update**.

**Parent Topic:**[Configure Microsoft Outlook Add-In for Legal Service Delivery](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/employee-service-management/legal-service-delivery/lsd-outlook-addin-configure.md)
Search documentation
Search document titles and file paths on the australia branch