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
Input | Prefix | Output |
---|---|---|
12345 | ID- | ID-12345 |
apple | FR- | FR-apple |
eyJhbGciOiJIUzI1NiIsInR5c… | Bearer | Bearer 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.