The decodeURI helper converts a URI-encoded string back to its decoded form, replacing encoded characters such as %20 with their original equivalents (e.g. a space). Use it when processing URL-encoded data from API responses, query parameters, or record fields.
Syntax
{{{decodeURI field}}}
field -- The URI-encoded string to decode. Required. Accepts a field reference or a literal string. If the input is not URI-encoded, the helper returns it unchanged.
Note: Always use triple braces ({{{ }}}). Double braces cause Celigo to re-encode the decoded output, reversing the effect of the helper.
Examples
Decode a URI-encoded field
{{{decodeURI orders}}}
Input: orders is "overseas%20order%20flow"
Output: overseas order flow
Decode a literal URI-encoded string
{{{decodeURI "overseas%20order%20flow"}}}
Output: overseas order flow
Usage notes
- Always use triple braces (
{{{ }}}). Double braces re-encode the output, which reverses the decoding. - If the input is not URI-encoded or is already in decoded form, the helper returns the original string unchanged.
- To encode a string for use in a URI, use the encodeURI helper instead.