---
title: "Object Definition Template"
description: "Object definition template"
canonical: "https://docs.cm.com/mobile-marketing-cloud/email-campaigns/templates/object-definition-template"
---

# Object Definition Template

> Object definition template

Source: https://docs.cm.com/mobile-marketing-cloud/email-campaigns/templates/object-definition-template

## Object definition template

<table>
  <thead>
    <tr>
      <th>Property</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>ID</td>
      <td>Guid</td>
      <td>The ID of the template</td>
    </tr>

    <tr>
      <td>AccountID</td>
      <td>Guid</td>
      <td>The accountID of the template</td>
    </tr>

    <tr>
      <td>Name</td>
      <td>String</td>
      <td>The name of the template</td>
    </tr>

    <tr>
      <td>Description</td>
      <td>String</td>
      <td>The description of the template</td>
    </tr>

    <tr>
      <td>HtmlBody</td>
      <td>String</td>
      <td>The html body of the template. This is the body that recipients with a normal e-mail client will get</td>
    </tr>

    <tr>
      <td>TextBody</td>
      <td>String</td>
      <td>The text body of the template. This is the body that recipients will get when their e-mail client doesn't support HTML</td>
    </tr>

    <tr>
      <td>Json</td>
      <td>String</td>
      <td>The json of the template. This field is only used when you use our editor. You can leave this blank.</td>
    </tr>

    <tr>
      <td>MergeFields</td>
      <td>Object</td>
      <td>See mergefields object definition</td>
    </tr>

    <tr>
      <td>TemplateEditorType</td>
      <td>Int (Enum)</td>

      <td>
        The editor type of the template<br />
        1 = Drag\&DropEditor, template is saved through the Drag\&Drop editor and includes valid json to be read by the Drag\&Drop editor.<br />
        2 = HtmlEditor, template is made up of custom html and not supported by the Drag\&Drop editor.<br />
      </td>
    </tr>

    <tr>
      <td>CreatedOn</td>
      <td>DateTime</td>
      <td>When the template was created in CET</td>
    </tr>

    <tr>
      <td>CreatedOnUtc</td>
      <td>DateTime</td>
      <td>When the template was created in UTC</td>
    </tr>

    <tr>
      <td>ModifiedOn</td>
      <td>DateTime</td>
      <td>When the template was last modified in CET</td>
    </tr>

    <tr>
      <td>ModifiedOnUtc</td>
      <td>DateTime</td>
      <td>When the template was last modified in UTC</td>
    </tr>

    <tr>
      <td>DeletedOn</td>
      <td>DateTime</td>
      <td>When the template was deleted in CET</td>
    </tr>

    <tr>
      <td>DeletedOnUtc</td>
      <td>DateTime</td>
      <td>When the template was deleted in UTC</td>
    </tr>
  </tbody>
</table>

## Object definition merge fields

<table>
  <thead>
    <tr>
      <th>Property</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>MergeTags</td>
      <td>Array of objects</td>
      <td>The mergetags available. See merge tag object definition</td>
    </tr>

    <tr>
      <td>SpecialLinks</td>
      <td>Array of objects</td>
      <td>The special links available. See special link object definition</td>
    </tr>
  </tbody>
</table>

## Object definition merge tag

<table>
  <thead>
    <tr>
      <th>Property</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>Name</td>
      <td>String</td>
      <td>The name of the merge tag</td>
    </tr>

    <tr>
      <td>Value</td>
      <td>String</td>
      <td ng-non-bindable>The value of the merge tag. This is the placeholder that will be replaced in the body of the mail, for example: \{\{ Recipient.Url }}</td>
    </tr>

    <tr>
      <td>Mapping</td>
      <td>String</td>
      <td>The field in the address object it should be replaced with, for example: Recipient.MergeFieldValue1.</td>
    </tr>
  </tbody>
</table>

## Object definition special link

<table>
  <thead>
    <tr>
      <th>Property</th>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>Type</td>
      <td>String</td>
      <td>The of the link, this should be either system or link</td>
    </tr>

    <tr>
      <td>Label</td>
      <td>String</td>
      <td>The label of the link. This is just for recognizing the link, it won't replace the label in the body.</td>
    </tr>

    <tr>
      <td>Link</td>
      <td>String</td>
      <td>This is the placeholder in the body that will be replaced, for example \[\[ SpecialLink.link2 ]]</td>
    </tr>

    <tr>
      <td>Mapping</td>
      <td>String</td>
      <td ng-non-bindable>The url this link should map to, for example: [https://www.cm.com](https://www.cm.com). This can also be a merge field, for example: \{\{ Recipient.Url }}</td>
    </tr>

    <tr>
      <td>Tag</td>
      <td>String</td>
      <td>The tag of the link. This will show up in your Data account when the link is clicked.</td>
    </tr>
  </tbody>
</table>
