# NewGuid

| **Name**    | ***NewGuid***                     |
| ----------- | --------------------------------- |
| Syntax      | NewGuid ()                        |
| Purpose     | To return a newly generated GUID. |
| Description | Generates a new GUID              |
| Return Type | Guid                              |
| Parameters  | None                              |

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FKj3P1XZOVU2LmVIwRsHZ%2F0.png?alt=media)

**Example**

This function transformation object is used to generate a new GUID, hence it does not require any parameters.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FhLJ2xVshyrKhdn1cxIJI%2F1.png?alt=media)

We will drag-and-drop the object onto the designer, and then right-click the object’s header and select *Preview Output*.

You can see that the *Data Preview* window has returned a newly generated GUID.

![](https://3083465318-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FsR50Wa7EwZGlmPSAMkkf%2Fuploads%2FgwWysEbMLRWWuWT71hAT%2F2.png?alt=media)
