{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":3956,"path":"build-workflows/workflow-studio/array-string-data.md","title":"Array.String data type","bundle":null,"doc_type":null,"release":"australia","body":"\n# Array.String data type\n\nStore a sequence of alphanumeric text values in an array.\n\n## Basic options\n\n|Option|Description|\n|------|-----------|\n|Label|Displays the label used to identify the data variable in the Workflow Studio interface. The label can consist of any text.|\n|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.|\n|Type|Indicates the type of data stored by the data variable.|\n|Mandatory|Indicates whether the data variable must contain a value when configured in an action.|\n\n## Advanced options for Array variables\n\n|Option|Description|\n|------|-----------|\n|Hint|Provides guidance to flow or action designers on how to configure the data.|\n|Max rows|Specifies the maximum number of entries to display in the Workflow Studio interface. The array can store more values than it displays.|\n\n## Advanced options for String variables\n\n|Option|Description|\n|------|-----------|\n|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.|\n|Hint|Provides guidance to flow or action designers on how to configure the data.|\n|Default value|Specifies the value used when a flow or action designer does not provide a value.|\n\n## Create a list of users who have a user role\n\n\\[Omitted image \"array-strings-execution-details.png\"\\] Alt text: Execution details of a custom action that generates user names who have a specific role.\n\nThis 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://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/create-custom-action-array-strings.md).\n\nIn this example, the users array contains three users who have the admin role.\n\n```\n{\n    \"users\": [\n        \"System Administrator\",\n        \"Rob Phillips\",\n        \"Fred Luddy\"\n    ]\n}\n\n```\n\n**Parent Topic:**[Workflow Studio input and output data variables](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/build-workflows/workflow-studio/action-inputs-outputs.md)\n\n"}}