Set Variable allows you to capture a value from a response and store it in PalDock for later use. This works both within the current flow (e.g. passing values between requests) and afterwards (e.g. using the stored value in tracking/postbacks). The value is persisted in the database, so it remains available beyond the immediate integration run.
When creating a variable, you define how to collect it from the reponse:
- Source – where to take the value from:
- Body – a field inside the response body
- Header – a response header
- HTTP code – the status code of the response (e.g. 200, 404)
- Constant – a fixed value defined manually
- Query – a query parameter in the response URL
- Key – the specific field or property to extract (the value in the response).
- Value – the expected value to compare against.
Example
- Source: Body
- Key: leadId
- Value: {external_id}
This saves the leadId from the response body into the system variable {external_id}, making it usable both in the flow and later in tracking.
or
- Source: Body
- Key: url
- Value: {redirect_url}
This saves the url from the response body into the system variable {redirect_url}, making it usable both in the flow and later.