---
schema_version: "1"
id: 69080fe304a07612282d9a7a6daf76743ed39d015e896d666cfb630d9f7a1ffa
title: getGlobalId()
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/aura-platform/guides/aura/ref-jsapi/ref-jsapi-component-getglobalid.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-component-getglobalid.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8ba3bdd375a2930e789bdc4b052ab18546f1d2441df7d36dd1ae42e5fbe16f61
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# getGlobalId()

Gets the global ID, which is the generated globally unique id of the component. It can be used to locate the instance later, but will change across page loads.

## Signature

`getGlobalId()`

**See Also**  


-   [Component IDs](https://developer.salesforce.com/docs/platform/aura-platform/components/components-ids.md)

