URL_ENCODE
Converts any URL-unsafe characters in the given text with form or uri encoding. Specify encoding: "uri" to use URI encoding, default encoding is form.
Categories: Text
Syntax
URL_ENCODE(text, [encoding: "form"])
Examples
Example 1
Input
1
{
2
"my_action": {
3
"message": "alice@example.com"
4
}
5
}
Formula
URL_ENCODE(my_action.message)
Output
"alice%40example.com"
Example 2: Space characters are turned into `+` characters instead of being percent encoded:
Input
1
{
2
"my_action": {
3
"message": "hello world"
4
}
5
}
Formula
URL_ENCODE(my_action.message)
Output
"hello+world"
Example 3: % encoding can be enabled via encoding: "uri":
Input
1
{
2
"my_action": {
3
"message": "hello world"
4
}
5
}
Formula
URL_ENCODE(my_action.message, encoding: "uri")
Output
"hello%20world"
Sample actions
Select an action to inspect
You can also click "Copy actions" and paste them in your Tines story to see how they work.