Retrieve all items from a JSON array
Retrieve all items from a provided JSON array-formatted text.
This Wrk Action divides. For more information on divides please visit our article explaining Divides.
Application
- Text
Inputs (what you have)
| Name | Description | Data Type | Required? | Example |
|---|---|---|---|---|
| Array text | Text in JSON array format that you are looking to retrieve all items from | Text (Long) | Yes | [“item1”, “item2”, “item3”] |
Note: the value of inputs can either be a set value in the configuration of the Wrk Action within the Wrkflow, or a variable from the Data library section. These variables in the Data library section are the outputs of previous Wrk Actions in the Wrkflow.
Outputs (what you get)
| Name | Description | Data Type | Required? | Example |
|---|---|---|---|---|
| Item value | The value of the individual item in the given JSON array | Text (Long) | Yes | item1 |
Outcomes
| Name | Description |
|---|---|
| Success | This status is selected if items are extracted from the JSON array. |
| No result | This status is selected in the event of the following scenarios:The array is empty or has no items in it |
| Impossible to Complete | This status is selected in the event of the following scenarios:The input text is not in JSON array formatting and could not be converted. |
Requirements
- N/A