---
schema_version: "1"
id: 4cc2220d988d32c01e64570f0e3292647c2a968faee87260aba022046600e54f
title: Merge Fields for Cases
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/merge_fields_cases.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.merge_fields_cases.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2f30e5d4f0d7a4eea30dfb3e7531a12e9cdc4e2ac1b3d7998ac654d0ef43bcbf
description: The list of available email template merge fields in the Salesforce Merge Language depends on the type of data that you’re working with. Most of the merge fields for cases correspond directly with a case field.
products:
  - Service Cloud
release: "264"
---
# Merge Fields for Cases

The list of available email template merge fields in the Salesforce Merge Language depends on the type of data that you’re working with. Most of the merge fields for cases correspond directly with a case field.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=service.service_editions_reference.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

To reference the contact or account associated with a case, use the relevant contact or account merge fields. The available merge fields vary by Salesforce edition.

In Lightning Experience, you can insert merge fields as plain text in the email publisher. Keep in mind that merge fields resolve only on preview and send.

This table explains the more advanced merge fields that represent values derived from processing a case record.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:20%">
          <col style="width:30%">
          <col style="width:35%">
          <col style="width:15%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d160049e70">Field</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d160049e73">Merge Field</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d160049e76">Description</th>
            <th scope="col" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" id="d160049e79">Works in Lightning Experience</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e70 ">
              <samp class="parmname">Articles as PDFs</samp>
            </td>

            <td data-label="Merge Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e73 ">
              <samp class="parmname">Case.Articles_as_PDFs</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e76 ">
              <p>Articles associated with the case converted to PDF
                attachments.</p>
              <p style="margin-bottom:0;">In the Emails related list on the case detail
                page, users can click <strong class="uicontrol">Send an Email</strong> and
                choose a template containing this merge field. The attachments
                can be previewed or deleted before the email is
                sent.</p>
            </td>

            <td data-label="Works in Lightning Experience" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d160049e79 ">No</td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e70 ">
              <samp class="parmname">Email Thread</samp>
            </td>

            <td data-label="Merge Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e73 ">
              <samp class="parmname">Case.Email_Thread</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e76 ">
              <p>A thread of all emails where the case contact is a sender or
                recipient (<samp class="parmname">To</samp>, <samp class="parmname">CC</samp>, or
                <samp class="parmname">BCC</samp>). <span id="merge_fields_cases__email_thread_details"><a name="merge_fields_cases__email_thread_details"><!-- --></a>The
                  emails are listed in reverse chronological order so the most
                  recent emails appear at the top of the thread. The thread
                  inserts the text version of the emails. You can’t use this merge
                  field in Visualforce pages.</span>
              </p>
              <p>The limits for the email
                thread are:</p><a name="merge_fields_cases__email_thread_limit_list"><!-- --></a>
              <ul id="merge_fields_cases__email_thread_limit_list">
                <li>Maximum number of emails: 200</li>
                <li>Email body truncation size: 32 KB</li>
              </ul>
            </td>

            <td data-label="Works in Lightning Experience" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d160049e79 ">Yes<sup>1</sup></td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e70 ">
              <samp class="parmname">Last Case Comment</samp>
            </td>

            <td data-label="Merge Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e73 ">
              <samp class="parmname">Case.Last_Case_Comment</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e76 ">The description of the most recent comment to be created on a
              case.</td>

            <td data-label="Works in Lightning Experience" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d160049e79 ">No</td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e70 ">
              <samp class="parmname">Solution Attachments</samp>
            </td>

            <td data-label="Merge Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e73 ">
              <samp class="parmname">Case.Solution_Attachments</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e76 ">Attachments for the case solution.</td>

            <td data-label="Works in Lightning Experience" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d160049e79 ">No</td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e70 ">
              <samp class="parmname">Solution Description</samp>
            </td>

            <td data-label="Merge Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e73 ">
              <samp class="parmname">Case.Solution_Description</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e76 ">The details of the solution associated with the case. If more
              than one solution is associated with the case, the description of
              each solution appears in a list.</td>

            <td data-label="Works in Lightning Experience" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d160049e79 ">Yes</td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e70 ">
              <samp class="parmname">Solution Subject</samp>
            </td>

            <td data-label="Merge Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e73 ">
              <samp class="parmname">Case.Solution_Subject</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e76 ">The title of the solution associated with the case. If more than
              one solution is associated with the case, the title of each solution
              appears in a list.</td>

            <td data-label="Works in Lightning Experience" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d160049e79 ">Yes</td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e70 ">
              <samp class="parmname">Solution Subject and Description</samp>
            </td>

            <td data-label="Merge Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e73 ">
              <samp class="parmname">Case.Solution_Subject_and_​Description</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e76 ">The title and details of the solution associated with the case.
              If more than one solution is associated with the case, the title and
              description of each solution appears in a list.</td>

            <td data-label="Works in Lightning Experience" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d160049e79 ">Yes</td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e70 ">
              <samp class="parmname">Suggested Solutions</samp>
            </td>

            <td data-label="Merge Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e73 ">
              <samp class="parmname">Case.Suggested_Solutions</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e76 ">
              <p>Links to the subject and description of each suggested solution
                that can help customers solve their issues.</p>
              <p style="margin-bottom:0;">Sending mass emails
                using templates with the suggested solutions merge field can
                take several minutes and isn’t recommended.</p>
            </td>

            <td data-label="Works in Lightning Experience" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d160049e79 ">No</td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e70 ">
              <samp class="parmname">Case Thread Id</samp>
            </td>

            <td data-label="Merge Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e73 ">
              <samp class="parmname">Case.Thread_Id</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e76 ">
              <p>A unique identifier for the case email thread in Email-to-Case
                with Ref Id threading. If you are using Ref Id threading, Salesforce
                recommends that you transition to Lightning threading.</p>
              <p style="margin-bottom:0;">The thread
                ID is a unique string, such as [ref:_DV0Txx._500V0U9YB:ref]. By
                default, it’s added to both the subject and body of case emails.
                In the body, the default location is at the end of the body. Use
                this merge field to position it elsewhere.</p>
            </td>

            <td data-label="Works in Lightning Experience" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d160049e79 ">Yes</td>

          </tr>
          <tr class="">
            <td data-label="Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e70 ">
              <samp class="parmname">Case Thread Token</samp>
            </td>

            <td data-label="Merge Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e73 ">
              <samp class="parmname">Case.Thread_Token</samp>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d160049e76 ">A unique identifier for the case email thread in Email-to-Case
              with Lightning threading. The thread token is a unique string in the
              case email, such as [thread::nYPXg5GyOvy0OZjpyhig6zw::]. It can be
              added to both the subject and body of case emails. In the body, the
              default location is at the end of the body. Use this merge field to
              position it elsewhere.</td>

            <td data-label="Works in Lightning Experience" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d160049e79 ">Yes<sup>2</sup></td>

          </tr>
        </tbody>
      </table>

## Notes on Merge Fields for Cases

- Email Thread—This merge field works in Lightning Experience when inserted as plain text. However, it doesn’t work in email templates.
- Case Thread Token—This merge field is supported in Lightning Experience only.
- Merge fields for entitlements on cases—Merge fields for entitlements on cases aren't supported. For example, if you add the Entitlement Name {!Case.Entitlement} merge field to an email template, the field is not populated on the template.
- Merge fields for Email-to-Case or On-Demand Email-to-Case—If you have enabled Email-to-Case or On-Demand Email-to-Case, you can create email templates that support reps can use to respond to case emails. These templates can include merge fields that display information from the original email in the response.
- Merge fields for Web-to-Case—To reference the name, email, phone, or company of the customer who submitted an online case with Web-to-Case, use the relevant {!Case\_OnlineCustomer...} field.
- Recipient merge fields—When using Lightning Experience templates and case automation, this merge field behaves differently than it does with Salesforce Classic templates. External users aren’t supported as recipients, and these users don’t receive emails.