---
sourceDocument: Australia Build workflows
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/build-workflows

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Build workflows

ft:clusterId :

    - crworkflow

bundleId :

    - crworkflow

workflow :

    - Creator


---

# Array.String data type

# Array.String data type {#ariaid-title1}

* Release version: Australia
* 
* Updated March 12, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Store a sequence of alphanumeric text values in an array.

## Basic options {#array-string-data__section_bmt_g44_dlb}

{#array-string-data__table-basic-data-options__entry__2}{#array-string-data__basic-data-label}{#array-string-data__basic-data-name}{#array-string-data__basic-data-type}{#array-string-data__basic-data-mandatory}

| Option | Description |
|-|-|
| Label | Displays the label used to identify the data variable in the Workflow Studio interface. The label can consist of any text. |
| Name | Displays the name used to identify the data variable in script calls. The name can only consist of alphanumeric and underscore characters. The system automatically converts the label into a valid name by removing or replacing any special characters. |
| Type | Indicates the type of data stored by the data variable. |
| Mandatory | Indicates whether the data variable must contain a value when configured in an action. |
[ ]

{#array-string-data__table-basic-data-options}

## Advanced options for Array variables {#array-string-data__section_syz_g44_dlb}

{#array-string-data__table_gkd_5t3_dlb__entry__2}

| Option | Description |
|-|-|
| Hint | Provides guidance to flow or action designers on how to configure the data. |
| Max rows | Specifies the maximum number of entries to display in the Workflow Studio interface. The array can store more values than it displays. |
[ ]

{#array-string-data__table_gkd_5t3_dlb}

## Advanced options for String variables {#array-string-data__section_sbk_h44_dlb}

{#array-string-data__table_od4_344_dlb__entry__2}

| Option | Description |
|-|-|
| Max length | Specifies the maximum length a string value can have when entered from the user interface. The variable can store longer strings than it can display. |
| Hint | Provides guidance to flow or action designers on how to configure the data. |
| Default value | Specifies the value used when a flow or action designer does not provide a value. |
[ ]

{#array-string-data__table_od4_344_dlb}  

## Create a list of users who have a user role {#array-string-data__example_dj4_3yt_rbc}

This example uses a custom action to generate a list of users who have a specific user role. To create the custom action to generate an array of strings, see [Create a custom action to generate an array of strings from a list of records](https://servicenow-prod.fluidtopics.net/OiaxgM0M6vljWFTWGNngjg "Generate an array of strings from a list of User Role records. Learn how to use a Script step to iterate through a list of records.").  
In this example, the users array contains three users who have the admin role.

    {
        "users": [
            "System Administrator",
            "Rob Phillips",
            "Fred Luddy"
        ]
    }


