---
sourceDocument: Brazil Telecommunications Network Inventory
sourceDocumentLink: https://www.servicenow.com/docs/r/telecom-network-inventory

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Telecommunications Network Inventory

ft:clusterId :

    - telninv

bundleId :

    - telninv

workflow :

    - Customer and Industry


---

# Inventory template naming patterns

# Inventory template naming patterns {#ariaid-title1}

Release version: Brazil  
Updated November 19, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Inventory template naming patterns

Inventory template naming patterns in ServiceNow define how configuration items (CIs) are named when created from inventory templates.
These patterns use JavaScript expressions to generate consistent, vendor-conforming names for network interfaces and slots, essential for telecom operators to maintain uniformity across their network inventory.
Accurate CI names support operational workflows like alarm correlation, fault management, and device configuration.
Show full answer Show less  

## Where naming patterns apply

Naming patterns can be defined at two levels:

* **Equipment model:** Provides default naming patterns for slots and interfaces, serving as the baseline for all templates created from that model.
* **Related template within an inventory template:** Each related template (slot, sub-slot, or interface) can override the model's default pattern with its own. If no pattern is defined, it defaults to the inventory model name upon CI creation.

The Inventory Template Overview tab displays these resolved names as tree node labels, matching the final CI names after creation.

## How naming patterns work

Naming patterns are JavaScript expressions returning strings. They can combine variables (resolved during evaluation), literal text, string methods, and conditional logic. For example:

* Simple pattern: `"Slot -"+position` results in names like **Slot -1**.
* Complex pattern with string manipulation and conditionals: modifies parent slot names and appends Tx/Rx based on position.

Variables that cannot be resolved at design time are shown as **?** in the Overview tree, helping identify and correct gaps before CI creation.

## When naming patterns are evaluated

* **At template definition time:** Opening the Inventory Template Overview tab evaluates naming patterns and shows a preview of CI names as tree labels.
* **At CI creation time:** Names resolved during design are applied to CIs when the inventory template is instantiated and CIs are created in the CMDB.

If naming patterns change after CI creation, administrators must update both the CI records and the templates to maintain consistency.

## Validation and management

* **Name pattern validation:** Runs automatically on save and when loading the Overview tab to prevent and identify errors.
* **Custom validation extension point:** Administrators can implement organization-specific naming rules by registering custom validation logic to complement or replace default checks.

## Inventory Template Overview tab

This tab provides a hierarchical tree view of the inventory template structure, showing resolved CI names and highlighting validation issues. This enables verification of naming conventions before deploying templates and creating actual CIs, helping avoid post-deployment errors.  
A naming pattern is a JavaScript expression that defines how a configuration item (CI) is named when it is created from an inventory template.

The naming patterns feature generates vendor-conforming names for network interfaces and slots within inventory templates. Telecom operators can define naming conventions that align with vendor-specific formats to maintain
consistency across the network inventory. Accurate names for physical and logical network resources are essential for operational workflows, such as alarm correlation, fault management, and device configuration.

## Where naming patterns apply {#naming-patterns-in-inventory-templates__where-naming-patterns-apply}

A naming pattern can be defined in two places:

* On an equipment model. A model carries default naming patterns for the slots and interfaces it contains. The model pattern acts as the default for every template created based on that model.
* On a related template within an inventory template. Each related template --- a slot, sub-slot, or interface --- carries its own naming pattern. The pattern starts as a copy of the model default and can be edited to override it for each template.

A related template that does not define a naming pattern, such as a card or module template, defaults to the inventory model name at instantiation. In the Inventory Template Overview tab, this fallback
name appears as the tree node label. The label matches the name the CI carries after it is created.

## What a naming pattern looks like {#naming-patterns-in-inventory-templates__what-a-naming-pattern-looks-like}

A naming pattern is a JavaScript expression that returns a string. The expression can reference variables that the system resolves at evaluation time, combine literal text with those variables, apply string methods, and use
conditional logic.

A simple pattern concatenates a literal and a variable:

    "Slot -"+position

For a related template at position 1, this pattern resolves to `Slot -1`.

A more complex pattern can use string methods and a ternary conditional:

    parent_slot_name.replace("Slot-","Slot/").replace("Slot/","Ge")+" (\" + (position <2 ? \"Tx\" : \"Rx\") + \")\"

For an interface at position 1 whose parent slot is named `Slot-6/1`, this pattern resolves to `Ge6/1 (Tx)`.

Variables that the pattern references are read from the related template's context. Variables that can't be resolved at design time are substituted with `?` in the Inventory Template Overview tree. For example, a
top-level slot has no `parent_slot_name`. The tree displays `?` so you can identify the gap before using the template to create CIs.

## When naming patterns are evaluated {#naming-patterns-in-inventory-templates__when-naming-patterns-are-evaluated}

Naming patterns are evaluated at two distinct times:

* At template definition time, when you open the Inventory Template Overview tab on an inventory template. The Overview evaluates every pattern in the template's hierarchy and displays the resolved name as each tree node's label.
  No CIs are created at template definition time. The Overview tab provides a preview.

* When an inventory template is used to create CIs in the CMDB, the names that were resolved at design time are applied to the new CIs. If a naming pattern changes after CIs exist, an administrator must update the name on both
  the CI record and the template.

The Inventory Template Overview tab enables you to verify naming end to end at design time, before any CIs are created. Without this verification, errors in patterns surface only after CIs exist in the CMDB.
* **[Model and template naming](https://www.servicenow.com/docs/HY3E46JOKOu5PAAxLT9muQ)**   
  The equipment model establishes default naming patterns for CIs (configuration items). Inventory templates inherit those patterns and can override them per related template.
* **[Inventory template name generation](https://www.servicenow.com/docs/9PeD3~fkWggF1LoTVnA6jw)**   
  When you instantiate an inventory template, each related template in the hierarchy produces a CI (configuration item). The CI's name comes from one of two sources, depending on whether the related template defines a naming pattern.
* **[Inventory template hierarchy view](https://www.servicenow.com/docs/xmP3xIdeO99tw46WCeUlgw)**   
  The Overview tab on an inventory template record shows the full template hierarchy as a tree. Use it to check resolved CI names and spot validation errors before deploying the template.
* **[Name pattern validation](https://www.servicenow.com/docs/b9rXWBAW8oKLpZoJx~Xltg)**   
  Name pattern validation runs twice. It runs at save time to prevent errors. And it runs when the Overview tab loads the hierarchy to catch issues specific to template relationships.
* **[Extension point for custom name validation](https://www.servicenow.com/docs/9IhR61~_TCNQRvCkGXJKWw)**   
  The custom name validation extension point validates resolved names in the Inventory Template Overview tab. Administrators can register custom validation rules to enforce organization-specific naming conventions, replacing or extending the default check.

**Related concepts**   

* [Model and template naming](https://www.servicenow.com/docs/HY3E46JOKOu5PAAxLT9muQ "The equipment model establishes default naming patterns for CIs (configuration items). Inventory templates inherit those patterns and can override them per related template.")
* [Inventory template name generation](https://www.servicenow.com/docs/9PeD3~fkWggF1LoTVnA6jw "When you instantiate an inventory template, each related template in the hierarchy produces a CI (configuration item). The CI's name comes from one of two sources, depending on whether the related template defines a naming pattern.")
* [Inventory template hierarchy view](https://www.servicenow.com/docs/xmP3xIdeO99tw46WCeUlgw "The Overview tab on an inventory template record shows the full template hierarchy as a tree. Use it to check resolved CI names and spot validation errors before deploying the template.")
* [Name pattern validation](https://www.servicenow.com/docs/b9rXWBAW8oKLpZoJx~Xltg "Name pattern validation runs twice. It runs at save time to prevent errors. And it runs when the Overview tab loads the hierarchy to catch issues specific to template relationships.")

