You are here: Help Topics > Customization > Calculation > GUIDTOB64 Function

GUIDTOB64 Function

This function converts a GUID in the standard 8-4-4-4-12 format to a base64-encoded equivalent.

Syntax

GUIDTOB64(guid)

Where guid is a string representing the standard 8-4-4-4-12 format of the GUID (including hyphens). The function will also accept the GUID if enclosed in curly braces "{guid}".

Returns the 22-character string representing the base64-encoded form of the GUID if successful, otherwise returns a blank string.

Example 1

GUIDTOB64("3f86cede-8086-4e8c-ba75-ea5a652bb1e5")

Returns the base64-encoded string D+Gzt6Ahk6MOWxK2Va6nW6.

Example 2

GUIDTOB64("{008c9ec8-6427-4910-86a5-f2610d959b4a}")

Returns the base64-encoded string ACMnshkJ0kQEqblQ1h8qWG.

Related Topics