replace

The replace operation simply replaces the input value with a predefined output value. It does not check the content of the original input. Once the operation is applied, the original value is discarded and the specified output is returned.

How it works

  • You define a replacement value in the operation settings.
  • Whenever the condition for this modification is met, the original field value is ignored and replaced by the new value.
  • The replacement can be:
    • A fixed string (e.g. “APPROVED”)
    • A numeric constant (e.g. 0, 100)
    • A value from another field

Examples

InputConditionOperationOutput
“pending”equals pendingreplace“approved”
12345alwaysreplace0
“yes”string-contains yreplace“true”

Usage in PalDock

Use replace when you need to:

  • Standardize field values (e.g. replace “pending” or “in_progress” with “open”).
  • Map human-readable input to codes (e.g. “yes” → 1, “no” → 0).
  • Simplify values for external APIs that only accept predefined constants.
  • Normalize inconsistent inputs (e.g. multiple statuses mapped into one common status).

Best Practices

  • Combine replace with conditions to only apply it for specific cases (e.g. replace “rejected” with “0”, but leave other statuses unchanged).
  • Use replace for simple one-to-one mappings. For more complex substitutions (patterns, partial matches), use Regex-replace
  • Be careful not to overwrite meaningful values unintentionally. If no condition is set, all inputs will be replaced.

Insights that
helps you grow

  • Release notes 2025/12/19
    We added country-based categorization. You can now categorize offers, integrations, and other items by a specific country, or keep them global across all markets. We also…
  • Release notes 2025/12/17
    More flexible lead rejection: based on validation rules, filters, or pingtree sales results, by source (iframe, API) or by partner (include / exclude). It is now possible to…
  • Case study: How Lender Orka Ventures Scaled Affiliate Operations
    Orka Ventures, an online lending group that wanted to scale fast across countries and onboard affiliates quickly. Their custom affiliate API and tracking layer soon…