<h2>Create and Assign Range/Single Number function</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2024" /><meta name="DC.rights.owner" content="(C) Copyright 2024" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="concept" /><meta name="DC.title" content="Create and Assign Range/Single Number function" /><meta name="abstract" content="The Create and Assign Range/Single Number function enables you to create the inventory number records for a number range when you process the network inventory workflow." /><meta name="description" content="The Create and Assign Range/Single Number function enables you to create the inventory number records for a number range when you process the network inventory workflow." /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom-network-inventory/concept/tni-flow-action.html" /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom/concept/telecom-overview.html" /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom-network-inventory/concept/telecom-network-inventory.html" /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom-network-inventory/concept/telecommunications-network-inventory-reference.html" /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom-network-inventory/concept/allocate-free-number-action.html" /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom-network-inventory/concept/add-card-action.html" /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom-network-inventory/concept/cascade-update-action.html" /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom-network-inventory/concept/create-logical-interface-action.html" /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom-network-inventory/concept/create-logical-connection-action.html" /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom-network-inventory/concept/create-physical-connection-action.html" /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom-network-inventory/concept/create_ip_subnetwork.html" /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom-network-inventory/concept/cidr_to_ip_range.html" /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom-network-inventory/concept/get-interface-summary-action.html" /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom-network-inventory/concept/lookup-next-hub-action.html" /><meta name="DC.relation" scheme="URI" content="../../../product/tmt-telecom-network-inventory/concept/path-compute-action.html" /><meta name="DC.creator" content="Pushpa Char" /><meta name="DC.creator" content="Lelani Prevost" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-06-02T11:44:56+05:30" /><meta name="DC.date.modified" content="2023-08-03" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="create-assign-range-single-number-function" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Create and Assign Range/Single Number function</title></head><body id="create-assign-range-single-number-function"> <div class="breadcrumb"><a class="link" href="../../../product/tmt-telecom/concept/telecom-overview.html" title="The ServiceNow Telecommunications products make work flow better across the value chain by connecting service delivery, customer care, and operations workflows on one platform.">Telecommunications</a> > <a class="link" href="../../../product/tmt-telecom-network-inventory/concept/telecom-network-inventory.html" title="With the ServiceNow Telecommunications Network Inventory application, you can build a digital representation of your physical and logical networks, and the services that are provisioned to your customers. This network inventory contains the assets, services, and the relationships that define the infrastructure of your telecommunications networks.">Telecommunications Network Inventory</a> > <a class="link" href="../../../product/tmt-telecom-network-inventory/concept/telecommunications-network-inventory-reference.html" title="Reference topics provide additional information about Telecommunications Network Inventory.">Telecommunications Network Inventory reference</a> > </div> <h1 class="title topictitle1" id="ariaid-title1">Create and Assign Range/Single Number function</h1> <div class="body conbody"><p class="shortdesc">The Create and Assign Range/Single Number function enables you to create the inventory number records for a number range when you process the network inventory workflow.</p> <div class="section" id="create-assign-range-single-number-function__section_gtn_hs2_hvb"><h2 class="title sectiontitle">Overview</h2> <p class="p">You use the Create and Assign Range/Single Number function to create the inventory number records between the input start and end numbers. This function also creates the corresponding number elements.</p> <p class="p">You can use this function as a <span class="ph">Flow Designer</span> action in the <span class="ph">Telecommunications Network Inventory</span> workflow.</p> </div> <div class="section" id="create-assign-range-single-number-function__section_kfd_fdk_x5b"><h2 class="title sectiontitle">Roles and availability</h2> <p class="p">An admin role can add an action to a flow and define the configuration details of the flow. This function is available as a <span class="ph">Flow Designer</span> action in the <span class="ph">Telecommunications Network Inventory</span> application so that you can perform inventory-related data operations.</p> </div> <div class="section" id="create-assign-range-single-number-function__section_vvs_jpr_x5b"><h2 class="title sectiontitle">Input fields</h2> <p class="p">The following table lists the input fields in the Allocate Free Number action and their descriptions.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="create-assign-range-single-number-function__table_w3g_2fm_1vb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span>Input fields of Create and Assign Range/Single Number function</span></caption><colgroup><col style="width:25%" /><col style="width:25%" /><col style="width:25%" /><col style="width:25%" /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d8418e104">Field Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d8418e107">Description</th><th class="entry cellrowborder" style="vertical-align:top;" id="d8418e110">Type</th><th class="entry cellrowborder" style="vertical-align:top;" id="d8418e113">Required?</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e104 ">Owned By Configuration Item</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e107 ">Inventory number record that you need the free number for.</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e110 ">Reference.Configuration Item</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e113 ">Yes</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e104 ">Start</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e107 ">Start number of the inventory number record.</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e110 ">Integer</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e113 ">Yes</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e104 ">End</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e107 ">End number of the inventory number record. You must provide the value when it’s a range.</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e110 ">Integer</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e113 ">No</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e104 ">Name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e107 ">Name of the inventory number record that you want to create.</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e110 ">String</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e113 ">Yes</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e104 ">Number Type</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e107 ">Type of network connection that you need the free numbers for. Select one of the following:<dl class="dl"><dt class="dt dlterm">VLAN Range</dt><dd class="dd">Range of VLAN numbers.</dd><dt class="dt dlterm">VLAN Subrange</dt><dd class="dd">Subset or a range of VLAN numbers within the overall VLAN range.</dd><dt class="dt dlterm">VLAN</dt><dd class="dd">Single VLAN number record</dd><dt class="dt dlterm">LAG Range</dt><dd class="dd">Range of LAG numbers.</dd><dt class="dt dlterm">LAG</dt><dd class="dd">Single LAG number record</dd></dl> </td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e110 ">Choice</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e113 ">Yes</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e104 ">Parent Number</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e107 ">Parent number record. If you don't select the parent number record, the function returns only an inventory number record for the start number.</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e110 ">Reference.Inventory Number record</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e113 ">No</td></tr></tbody></table> </div> <p class="p">To learn more about the variable data types, see <a class="xref" href="../administer/flow-designer/reference/action-inputs-outputs.dita/action-inputs-outputs.html" target="_blank" rel="noopener noreferrer">Flow Designer input and output data variables</a>.</p> </div> <div class="section" id="create-assign-range-single-number-function__section_adz_wwm_dvb"><h2 class="title sectiontitle">Output</h2> <p class="p">The following table lists the information about the function output.</p> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="create-assign-range-single-number-function__table_fxx_wxm_dvb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 2. </span>Output of function</span></caption><colgroup><col style="width:33.33333333333333%" /><col style="width:33.33333333333333%" /><col style="width:33.33333333333333%" /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d8418e299">Name</th><th class="entry cellrowborder" style="vertical-align:top;" id="d8418e302">Description</th><th class="entry cellrowborder" style="vertical-align:top;" id="d8418e305">Type</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e299 ">Inventory Number</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e302 ">Returns the inventory number record.</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d8418e305 ">Record</td></tr></tbody></table> </div> </div> <div class="section" id="create-assign-range-single-number-function__section_i5v_kpr_x5b"><h2 class="title sectiontitle">Example</h2> <p class="p">Consider, a VLAN has 1–4096 as range and 1–1000, 1001–2500, and 2510–4096 are the subranges. If you give the start number as 2501 and the end number as 2502, the function creates a number range of 2501-2502 and returns the inventory number record.</p> </div> </div> <div class="related-links"> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="../../../product/tmt-telecom-network-inventory/concept/tni-flow-action.html" title="By using the Telecommunications Network Inventory function catalog, you can access the functions that help you to automate the network inventory's Design and Assign process.">Telecommunications Network Inventory function catalog</a></div> </div> <div class="linklist relinfo relconcepts"><strong>Related concepts</strong><br /> <ul class="linklist"><li class="linklist"><a class="link" href="../../../product/tmt-telecom-network-inventory/concept/allocate-free-number-action.html" title="The Allocate Free Number function enables you to assign free numbers from the Telecommunications Network Inventory number record. You use this function to allocate a quantity of numbers from a specified range to add against the configuration item (CI) in a number element.">Allocate Free Number function</a></li><li class="linklist"><a class="link" href="../../../product/tmt-telecom-network-inventory/concept/add-card-action.html" title="The TNI Create CI From Template function enables you to create the inventory instance in the designated site or equipment holder in the Telecommunications Network Inventory application when you instantiate an inventory with the inventory template. You can automatically create the inventory when you instantiate the network inventory design and assign process.">Create CI From Template function</a></li><li class="linklist"><a class="link" href="../../../product/tmt-telecom-network-inventory/concept/cascade-update-action.html" title="The Cascade Update function enables you to update a configuration item (CI) attribute in the Telecommunications Network Inventory application and cascade the change in all related CIs. You can use this function to automatically cascade the field values in related CIs when you use Flow Designer.">Cascade Update function</a></li><li class="linklist"><a class="link" href="../../../product/tmt-telecom-network-inventory/concept/create-logical-interface-action.html" title="The Create Logical Interface function enables you to create logical interfaces in the Telecommunications Network Inventory application.">Create Logical Interface function</a></li><li class="linklist"><a class="link" href="../../../product/tmt-telecom-network-inventory/concept/create-logical-connection-action.html" title="The Create Logical Connection function enables you to create a logical connection record in the Telecommunications Network Inventory application based on the input (interfaces) that you receive when you instantiate an inventory.">Create Logical Connection function</a></li><li class="linklist"><a class="link" href="../../../product/tmt-telecom-network-inventory/concept/create-physical-connection-action.html" title="The Create Physical Connection function enables you to create a physical connection record in the Telecommunications Network Inventory application based on the input that you receive when you instantiate an inventory.">Create Physical Connection function</a></li><li class="linklist"><a class="link" href="../../../product/tmt-telecom-network-inventory/concept/create_ip_subnetwork.html">Create IP subnetwork function</a></li><li class="linklist"><a class="link" href="../../../product/tmt-telecom-network-inventory/concept/cidr_to_ip_range.html" title="Classless Inter-Domain Range (CIDR) to IP range flow action enables you to create a set of IP addresses using the Classless Inter-Domain Range (CIDR) using Telecommunications Network Inventory application based on the input that you receive when you instantiate an inventory.">CIDR to IP range function</a></li><li class="linklist"><a class="link" href="../../../product/tmt-telecom-network-inventory/concept/get-interface-summary-action.html" title="The Get Interface Summary function enables you to retrieve all the network interface records that are associated with the input. You can use this function to automatically get the details of the available interface, connected interface, and the physical connection of the equipment in the Telecommunications Network Inventory application when you use Flow Designer.">Get Interface Summary function</a></li><li class="linklist"><a class="link" href="../../../product/tmt-telecom-network-inventory/concept/lookup-next-hub-action.html" title="The Lookup Next Hub function enables you to take the network interface record as input and return the details of the related physical connection record. You can automatically get the details of the physical connection and interconnected ports of the equipment in the Telecommunications Network Inventory application when you use the Flow Designer application.">Lookup Next Hub function</a></li><li class="linklist"><a class="link" href="../../../product/tmt-telecom-network-inventory/concept/path-compute-action.html" title="The Path Search function enables you to execute the path computation function between the starting and ending sites in the Telecommunications Network Inventory application. You can use this function for the path computation when you process the network inventory design and assign.">Path Search function</a></li></ul></div> </div></body></html></div>