---
sourceDocument: Xanadu API Reference
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# QuickRanges - Global

# QuickRanges - Global {#ariaid-title1}

* Release version: Xanadu
* 
* Updated August 1, 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

The QuickRanges script include provides methods to generate IP network, range, and address entries from a convenient comma-separated input field using conventional Classless Inter-Domain Range (CIDR) network
notation, hyphenated range entries, or individual IP addresses.

You can use this script include with any server-side discovery script.

## QuickRanges - createItem(String table, String id, String type) {#ariaid-title2}

Creates a new discovery range item.
{#r_QR-createItem_S_S_S__table_b5n_xl1_rt__entry__3}

| Name | Type | Description |
|-|-|-|
| table | String | The table where the item will be created. |
| id | String | The identifier to use for the new item. |
| type | String | The type of entries to generate: IP address, IP network, or IP range. |
[Table 1. Parameters]

{#r_QR-createItem_S_S_S__table_b5n_xl1_rt} {#r_QR-createItem_S_S_S__table_c5n_xl1_rt__entry__2}

| Type | Description |
|-|-|
| GlideRecord | The created entry |
[Table 2. Returns]

{#r_QR-createItem_S_S_S__table_c5n_xl1_rt}

## QuickRanges - onMakeRanges() {#ariaid-title3}

Returns the IP network, range, and address information to use when generating the
entries.
{#r_QR-onMakeRanges__table_frl_rl1_rt__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 3. Parameters]

{#r_QR-onMakeRanges__table_frl_rl1_rt} {#r_QR-onMakeRanges__table_grl_rl1_rt__entry__2}

| Type | Description |
|-|-|
| void |   |
[Table 4. Returns]

{#r_QR-onMakeRanges__table_grl_rl1_rt}

