---
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


---

# Lookup Next Hub function

# Lookup Next Hub function {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read  
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 Workflow Studio
application.
You can use the Lookup Next Hub function to return the following:

* Physical connection that is related to the port.
* Empty response if no physical connection is related to the port.
* sys_id of the front and back ports, and the port name, if there's a configuration item (CI) relationship between the front and back ports.
* NextHub interface and the interfaces that are connected to the other end of the physical connection.
* NextHub interconnected interface and the interconnected interfaces that are connected to the other end of the physical connection.
{#lookup-next-hub-action__ul_tkd_c2h_bvb}

You can use this function as a Workflow Studio action in the Telecommunications Network Inventory workflow.

## Roles and availability {#lookup-next-hub-action__section_dv3_wrd_1vb}

Users with the admin role can add an action to a flow and define the configuration details of
the flow. This function is available as a Workflow Studio action in the Telecommunications Network Inventory application so that you can perform inventory-related data
operations.

## Input fields {#lookup-next-hub-action__section_ltb_bcr_x5b}

The following table lists the input fields in the Lookup Next Hub action and their descriptions.
{#lookup-next-hub-action__table_w3g_2fm_1vb__entry__3}

| Field Name | Description | Data Type |
|-|-|-|
| Network Interface | Network interface record. | Reference.Network Interface |
| If multiple records are found action | Option to select the action when multiple records are found. You can select Return only the first record from the list to return the details of the first physical connection record. | Choice |
[Table 1. Input fields of next hub action]

{#lookup-next-hub-action__table_w3g_2fm_1vb}

To learn more about the variable data types, see [Flow Designer input and output data
variables](https://www.servicenow.com/docs/access?context=action-inputs-outputs&version=brazil&pubname=brazil-build-workflows&ft:locale=en-US).

## Output {#lookup-next-hub-action__section_rnx_nxn_dvb}

The following table lists the information about the function output.
{#lookup-next-hub-action__table_snx_nxn_dvb__entry__3}

| Name | Description | Data Type |
|-|-|-|
| Physical Connections | Returns the list of sys_ids of the physical connection records that are related to the network interface. | Array.String |
| Interconnected Port | Returns the list of sys_ids of the ports that are interconnected to the network interface. | Array.String |
| NextHub Interface | Returns the list of sys_ids of the interfaces that are connected to the other end of the physical connection. | Array.String |
| NextHub Interconnected Interface | Returns the list of sys_ids of the interconnected interfaces that are connected to the other end of the physical connection. | Array.String |
[Table 2. Output of function]

{#lookup-next-hub-action__table_snx_nxn_dvb}

## Example {#lookup-next-hub-action__section_otn_zrd_1vb}

Use Case 1
:   If the input is passed as Interface-1 of Equipment-1 as shown in the following example, the function returns empty records. This is because the network inventory has no physical or internal connections.  
    ![Display of use case 1 where Interface-1 is connected to Equipment-1.]()  

Use Case 2
:   If the input is passed as Interface-1 of Equipment-1 as shown in the following example, the function returns the network interface record of Interface-2.  
    ![Display of use case 2 where Interface-2 and Interface-1 are connected to Equipment-1.]()  

Use Case 3
:   If the input is passed as Interface-1 of Equipment-1 as shown in the following example, the function returns the network interface record of Interface-2. It also returns the physical connection record of PC-1.  

Use Case 4
:   If the input is passed as Interface-1 of Equipment-1 as shown in the following example, the NextHub Interface is 3 and the NextHub Interconnected Interface is 4.  

{#lookup-next-hub-action__dl_fvj_bsd_1vb}
**Related concepts**   

* [Allocate Free Number function](https://www.servicenow.com/docs/_llqCs0~ooIpucBGdSJqiQ "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.")
* [Create CI From Template function](https://www.servicenow.com/docs/QFQ41pSHRqKPtAc0ACiz~w "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. This occurs 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.")
* [Cascade Update function](https://www.servicenow.com/docs/0h9gJf66iuaLuowx~c3_MA "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 Workflow Studio.")
* [Create and Assign Range/Single Number function](https://www.servicenow.com/docs/Cxx9TNxEA~Isq3lSHUeX9w "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.")
* [Create Logical Interface function](https://www.servicenow.com/docs/mC61zMU2Z8ZCZVnJYMehkw "The Create Logical Interface function enables you to create logical interfaces in the Telecommunications Network Inventory application.")
* [Create Logical Connection function](https://www.servicenow.com/docs/dV1vLj2OAda8JGyEUbNo8A "The Create Logical Connection function enables you to create a logical connection record in the Telecommunications Network Inventory application. The record is based on the input (interfaces) that you receive when you instantiate an inventory.")
* [Create Physical Connection function](https://www.servicenow.com/docs/C1w8K2g3wY8Gtrqv8qigEA "The Create Physical Connection function enables you to create a physical connection record in the Telecommunications Network Inventory application. The record is based on the input that you receive when you instantiate an inventory.")
* [Create IP subnetwork function](https://www.servicenow.com/docs/otbqvl2ld5cDmLa5iAdAfg)
* [CIDR to IP range function](https://www.servicenow.com/docs/sUCIK26_NjQL3lvJroZ57A "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) in the Telecommunications Network Inventory application. The addresses are based on the input that you receive when you instantiate an inventory.")
* [Get Interface Summary function](https://www.servicenow.com/docs/WzNPry_rnAQtgJrrk0Dyfg "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. Use this when you use Workflow Studio.")
* [Path Search function](https://www.servicenow.com/docs/UAFv6~2RsDB2dXWBOUcuSA "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.")

