The encodeURI helper converts special characters in a string to their percent-encoded equivalents, making the string safe for use in a URL. Use it when passing field values as URL parameters or path segments that may contain spaces, punctuation, or other reserved characters.
Syntax
{{{encodeURI field}}}
field -- The string to encode. Required. Accepts a field reference or a literal string.
Note: Always use triple braces ({{{ }}}). Double braces cause Celigo to apply additional formatting to the already-encoded output.
Examples
Encode a field value for use in a URL
{{{encodeURI orders}}}
Input: orders is "overseas order flow"
Output: overseas%20order%20flow
Encode a literal string
{{{encodeURI "sample data type"}}}
Output: sample%20data%20type
Usage notes
- Always use triple braces (
{{{ }}}). Double braces apply additional formatting to the encoded output. - Characters encoded include spaces and reserved characters such as
, / ?: @ & = + $ #. - To decode a URI-encoded string back to its original form, use the decodeURI helper.