prefix

The prefix operation adds a predefined value in front of the input value. The prefix is defined in the Output field of the operation settings.

How it works

  • You specify a prefix string (e.g. “ID-“).
  • When the operation runs, this string is placed at the beginning of the input value.
  • The original value is kept intact, only extended with the prefix.

Examples

InputPrefixOutput
12345ID-ID-12345
appleFR-FR-apple
eyJhbGciOiJIUzI1NiIsInR5c…BearerBearer eyJhbGciOiJIUzI1NiIsInR5c…

Usage in PalDock

Use prefix when you need to:

  • Add identifiers to values (e.g. ID-123).
  • Attach country codes to phone numbers (e.g. +420 before the local number).
  • Add tags or markers to values before sending them to an API.
  • Standardize values across multiple sources by giving them a consistent prefix.
  • Most commonly: prepend the string “Bearer ” to a Base64 token or JWT when setting up Authorization headers in API requests.

Best Practices

  • Keep prefixes consistent — e.g. use the same tag across all IDs of a certain type.
  • Combine prefix with conditions to only apply it in specific cases (e.g. only add +420 if no prefix is present).
  • Be mindful of APIs that might reject duplicate or unexpected prefixes.

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…