Skip to main content

Datacollection

Used to access the data populated by Data Collection.

Example 1

Data

"dataCollection": 
[
{ "apiResponse": "{\"status\": 200, \"body\": { \"id\": 1, \"name\": \"John\" }}" }
]

Input

{datacollection:apiResponse}

Output

{\"status\": 200, \"body\": { \"id\": 1, \"name\": \"John\" }}

Example 2: Access json value

The dataCollection macro supports the addition of #json to access json values.

Data

"dataCollection": 
[
{ "apiResponse": "{\"status\": 200, \"body\": { \"id\": 1, \"name\": \"John\" }}" }
]

Input

{datacollection#json:apiResponse.body.name}

Output

John