Fields / Formula / function

UrlEncode

Makes text safe to put in a URL, such as an API Call step's URL: every character other than letters, digits and - _ . ~ is written as a % code, so a space is %20 and & is %26.

Syntax

UrlEncode(value)

Returns

Text.

Example

Concat("https://maps.googleapis.com/maps/api/geocode/json?address=", UrlEncode(Concat(Record.City, ", ", Record.State)))

Notes and limitations

A value merged into a URL is sent as it is, so a value with &, #, + or = breaks the URL; wrap it in UrlEncode. Don't wrap a value that is already part of a URL (a whole address or a query string such as a=1&b=2): its / ? & and = would be encoded too. A value that is not text is written as text first. A blank gives blank text.