Response Assignments

Response Assignments are used to set flow variables based on values of elements of the response. This provides a simple way to parse responses to extract elements from the responses.

This property is enabled only for Single Request or Template input data request mode. It is provided through a table with two columns: Path and Flow variable. The path is a JSON path of a field in the response, specified using the dot-notation defined above. The value of the field will be assigned to the specified flow variable.

For example, if response data contains:

{ "_id": "1111", "details": { "fname": "Steve", "lname": "Smith" } }

The response assignment table contains:

Path Flow variable
_id id
details.lname last_name

This will result in flow variable "id" being assigned "1111" and "last_name" flow variable being assigned to "Smith".