TO_HEX

Converts text or data into hexadecimal text.

Syntax 

TO_HEX(text)

Usage examples 

Example 1

Input

1
{
2
"my_action": {
3
"text_data": "This is a piece of text"
4
}
5
}

Formula

TO_HEX(my_action.text_data)

Output

"546869732069732061207069656365206f662074657874"

Example 2

Input

1
{
2
"my_action": {
3
"base64_binary_data": "Jvgw8kqvWFd2N7BTKFn4xA=="
4
}
5
}

Formula

TO_HEX(BASE64_DECODE(my_action.base64_binary_data))

Output

"26f830f24aaf58577637b0532859f8c4"
Was this helpful?