Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
Switch services using the Version drop-down list. Learn more about navigation.
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Encodes a GUID to a base64 string.
Syntax
base64_encode_fromguid(guid)
Learn more about syntax conventions.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| guid | guid |
✔️ | The value to encode to a base64 string. |
Returns
Returns a base64 string encoded from a GUID.
Examples
The following example shows how to use base64_encode_fromguid() to encode a GUID into a base64 string.
print Quine = base64_encode_fromguid(toguid("ae3133f2-6e22-49ae-b06a-16e6a9b212eb"))
Output
| Quine |
|---|
| 8jMxriJurkmwahbmqbIS6w== |
If you try to encode anything that isn't a GUID as below, an error will be thrown:
print Empty = base64_encode_fromguid("abcd1231")
Related content
- To decode a base64 string to a GUID, see base64_decode_toguid().
- To create a GUID from a string, see toguid().