URL-encodes the contents of a string field.
Function Traits: FieldComputationFunction
, Transformation
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
as | string | optional | _urlencode | Name of output field. |
field [a] | string | required | The name of the input field with the value to url-encode. | |
type | string | optional | Type of encoding | |
The parameter name for field
can be omitted; the following forms are equivalent:
logscale
urlEncode("value")
and:
logscale
urlEncode(field="value")
urlEncode()
Examples
With an event with a field
Bar=https://www.example.com, you
get https%3A%2F%2Fwww.example.com
in the
_urlencode field
logscale
urlEncode("Bar")
With an event with a field
Bar=https://www.example.com, you
get https%3A%2F%2Fwww.example.com
in the
Foo field
logscale
Foo:=urlEncode("Bar")
With an event with a field
Bar=https://www.example.com, you
get https%3A%2F%2Fwww.example.com
in the
Foo field
logscale
urlEncode("Bar", as="Foo")