---
schema_version: "1"
id: 13de30572be0cdbb8e5d716f323638accb2b27b0488c15434a53c58a3560fff9
title: getLocalId()
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-getlocalid.md
canonical_url: https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-component-getlocalid.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: f84dbb2f3790492df6a2a4caaf19f30e26fe0a2883f9c682fe2730be2a272489
products:
  - Lightning Aura Components Developer Guide
  - Platform Developer Content
---

# getLocalId()

Gets the ID set using the `aura:id` attribute. Pass the local ID into `find()` on the parent component to locate this child component.

## Signature

`getLocalId()`

**See Also**  


-   [find()](https://developer.salesforce.com/docs/platform/aura-platform/guide/ref-jsapi-component-find.md)

