Set Variable

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.

Insights that
helps you grow

  • Platform Pick 12: Rollout
    As you approach the official rollout of your affiliate platform, it’s time to take a step back and make sure everything is in place. A…
  • Platform Pick 11: Integrate and Test it
    When it comes to affiliate marketing, tracking clicks and leads is key to making sure you’re paying affiliates correctly and measuring success. But it’s not…
  • Platform Pick 10: Business, Legal, and IT Prep
    Now that you’ve narrowed down your platform choice, it’s time to make sure everything checks out from a business, legal, and technical perspective. This step…