# Get list length transform action

## Use case

You have a list of user's that has been returned from an API, you would like to determine the count of user's in the list.

## Overview

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2Fb2ReHTeRRkKSjROpG6Bv%2FScreenshot%202025-04-18%20at%202.59.32%E2%80%AFPM.png?alt=media&#x26;token=c14649b6-97e8-4edd-98f9-9c23822e067a" alt="A screenshot of the get list length transform action, seen in the actions list menu of the workflow builder canvas."><figcaption></figcaption></figure>

Measures the length of a List. It will return the number of elements of that list.

## Parameters

<table><thead><tr><th width="217">Parameter</th><th width="417.3333333333333">Description</th><th data-type="checkbox">Required</th></tr></thead><tbody><tr><td>List to Measure</td><td>The array/list to get the length of.</td><td>true</td></tr></tbody></table>

## Usage

<details>

<summary>Example: Getting the count of numbers in a list</summary>

Inputs:

**List to Measure:** `[1,2,3,4,5]`

</details>

## Results output

Result of Example:

```
5
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rewst.help/documentation/automations/actions-in-rewst/transform-actions/get-list-length-transform-action.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
