---
schema_version: "1"
id: c8b1efeefa3f4ffa62621803a17c30a2ed6ba39da06f6abad5d866ed07155832
title: GUID
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/marketing-cloud/guides/mc-programmatic-content/ssjs_utilitiesGUID.md
canonical_url: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/ssjs_utilitiesGUID.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2a4dc7ad68a331de5e2cfa65f5d0c696222aef66cb855265344cb56f984ae190
products:
  - Marketing Cloud Engagement APIs and Programmatic Languages
  - Marketing Cloud
---
# GUID

Return a globally unique ID (GUID) as a string. The ID that the function returns is generated using random data. The variant type for the ID is DCE 1.1, ISO/IEC 11578:1996.

This function doesn't accept any arguments.

## Example

This code example generates a GUID and saves it as a variable called `myGUID`.

```js
<script runat="server">
  Platform.Load("Core","1");
  var randomID = Platform.Function.GUID();
</script>
<p>GUID: <ctrl:var name="randomID"/></p>
```

The output of the code example includes a randomly generated GUID.

```
GUID: 31558c83-ff02-42c5-ab2d-a1455f9d6d4b
```
