/
Automatic response variables

Automatic response variables

By choosing "Auto populate response variables" the child action will automatically parse the response JSON and add top-level variables to the variable scope. 

Example JSON response from parent action:

{
      "gender": "male",
      "name": {
        "title": "mr",
        "first": "sal",
        "last": "van ballegooij"
      },
      "location": {
        "street": "1978 predikherenstraat",
        "city": "oldenzaal",
        "state": "groningen",
        "postcode": 32432,
        "coordinates": {
          "latitude": "46.8524",
          "longitude": "-179.9888"
        },
        "timezone": {
          "offset": "+5:00",
          "description": "Ekaterinburg, Islamabad, Karachi, Tashkent"
        }
      }
}


Will result in the following variables being available:

{{gender}} - The String "male" in this case

{{name}} - An object, use "." notation to drill down. Ie. {{name.title}} for "mr"

{{location}} - An object, use "." notation to drill down. Ie. {{location.coordinates.latitude}} for "46.8524"



Related content

Mustache Variables
Mustache Variables
Read with this
Chained actions and JSON Path
Chained actions and JSON Path
More like this
Data storage
Read with this
Parent Variables
Parent Variables
More like this
Common integration problems
Common integration problems
Read with this
Access iterator value in child action
Access iterator value in child action
More like this