---
updatedAt: 2025-06-16T23:02:19.000Z
agentTools:
  projectIndex: https://developers.directscale.com/llms.txt
---

# Template Name

<Embed url="https://www.youtube.com/embed/L5rIkJCY-0A?start=131" title="Elements of a XML Compensation Plan" favicon="https://www.youtube.com/favicon.ico" image="https://i.ytimg.com/vi/L5rIkJCY-0A/hqdefault.jpg" provider="youtube.com" href="https://www.youtube.com/embed/L5rIkJCY-0A?start=131" html="%3Ciframe%20class%3D%22embedly-embed%22%20src%3D%22%2F%2Fcdn.embedly.com%2Fwidgets%2Fmedia.html%3Fsrc%3Dhttps%253A%252F%252Fwww.youtube.com%252Fembed%252FL5rIkJCY-0A%253Ffeature%253Doembed%2526start%253D131%26display_name%3DYouTube%26url%3Dhttps%253A%252F%252Fwww.youtube.com%252Fwatch%253Fv%253DL5rIkJCY-0A%26image%3Dhttps%253A%252F%252Fi.ytimg.com%252Fvi%252FL5rIkJCY-0A%252Fhqdefault.jpg%26key%3Df2aa6fc3595946d0afc3d76cbbd25dc3%26type%3Dtext%252Fhtml%26schema%3Dyoutube%22%20width%3D%22854%22%20height%3D%22480%22%20scrolling%3D%22no%22%20title%3D%22YouTube%20embed%22%20frameborder%3D%220%22%20allow%3D%22autoplay%3B%20fullscreen%22%20allowfullscreen%3D%22true%22%3E%3C%2Fiframe%3E" />

The template's name is defined in the `<ComPeriod>` which has general information about the template, such as the `Name` and `<VolumeRange>` (date range) included for each period.

The `Name` here must match the name of the file in the **Template Selector** and must be the last attribute defined in `<ComPeriod>`.

```xml
<?xml version="1.0" encoding="UTF-8"?> 
<Template>
  <ComPeriod TrackRealtimeRankAdvancements="False" EnrollTree="Enrollment" RoundPrecision="3" Usage="CommissionRun, StateStats, RealtimeStats" Name="MonthlyUI">

   ...
   ...
   ...

  </ComPeriod>
</Template>
```

Typically, the template name is the same as the period it represents (Weekly, Monthly, Bi-Monthly, etc.).

It's also important, when working with the [XML Compensation Plan Editor](https://developers.directscale.com/docs/xml-compensation-plan-editor), that every template name must have a revision and `<ComPeriod Name="">` with the same name to function properly. **Template Names** and **Template Revisions** are case sensitive and can be no longer than 50 characters.

![Template Name in XML Editor](https://lxteam.blob.core.windows.net/images/DevSite/xml%20name.png)