---
agentTools:
  projectIndex: https://docs.agilite.io/llms.txt
---

# Add a Prefix / Suffix To Your Numbering Process

## **Overview**

In many scenarios, generated numbers require a prefix or suffix, or in some cases, both. An example of this is a Purchase Order number. Instead of the number just being `001`, the requirement might be that the number is prefixed with the first 3 characters off a supplier's name...e.g. `AMA001`. Another example is if the number is suffixed with the current year...e.g. `AMA001-2018`.

The Numbering modules allows for static and dynamic prefixes and suffixes to be configured. The tutorial below shows how this is done:

[block:callout]
{
  "type": "info",
  "title": "Dynamic Prefixes and Suffixes",
  "body": "**Note:** Dynamic prefixes and suffixes need to be assigned in the Numbering Profile via the [Agilit-e Admin Portal](https://portal.agilite.io), using [Mustache.js](http://mustache.github.io) in order to assign them dynamic values (ie values that you pass to the API Call). You can also go over the [Mustache Tags](https://docs.agilite.io/docs/mustache) section again to fully understand how they are implemented."
}
[/block]

1. In the Agilit-e Admin Portal, in the Numbering module's section, open the `Leave Numbering` profile.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/67752c7-Existing-Numbering.png",
        "Existing-Numbering.png",
        1232,
        676,
        "#faf9f8"
      ]
    }
  ]
}
[/block]

2. Click on the Actions menu icon Numbering profile's title bar.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/7ade39e-Reset-Numbering-Counters.png",
        "Reset-Numbering-Counters.png",
        1524,
        748,
        "#fbfafa"
      ]
    }
  ]
}
[/block]

3. Click on the `Reset Numbering Counters` menu item. This resets the number back to 0.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/44ad024-Reset-Numbering-Item.png",
        "Reset-Numbering-Item.png",
        1250,
        320,
        "#fdfbfb"
      ]
    }
  ]
}
[/block]

4. Set the Prefix field to a value of `LEAVE-` and the Suffix field to `-2019`.

[block:image]
{
  "images": [
    {
      "image": [
        "https://files.readme.io/55e6bab-Prefix-Suffix-Numbering.png",
        "Prefix-Suffix-Numbering.png",
        1596,
        1492,
        "#fbfafa"
      ]
    }
  ]
}
[/block]

5. Click on `Submit` to save the Numbering Profile.

6. Navigate to the [Agilit-e API Reference Docs](https://docs.agilite.io/v5/reference) and execute the Numbering API. Below is an example of a number with a prefix and suffix.

[block:code]
{
  "codes": [
    {
      "code": "LEAVE-1-2019",
      "language": "text",
      "name": "200 OK"
    }
  ]
}
[/block]