# Obtain the full path of a component on Perspective

**URL:** <https://forum.inductiveautomation.com/t/obtain-the-full-path-of-a-component-on-perspective/65234>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 14, 2022, 3:38pm UTC](https://forum.inductiveautomation.com/t/obtain-the-full-path-of-a-component-on-perspective/65234 "2022-10-14T15:38:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheko29](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sheko29/32/25082_2.png) [@Sheko29](https://forum.inductiveautomation.com/u/Sheko29)\
**Post date:** [October 14, 2022, 3:38pm UTC](https://forum.inductiveautomation.com/t/obtain-the-full-path-of-a-component-on-perspective/65234/1 "2022-10-14T15:38:47Z")

</div>

Hi,

Today I'm working on a funtion to let a user send emails when caught an exception to inform de developers... so I'm locking on a way to obtain the complete path of the component that invoke the exception, but with "self.meta.name" only obtain the name like "btnAdd" but what I want is to obtain something like "root/ctrBasket/ctrFruit/btnAdd" in which ctrBasket and ctrFruit are containers.

I didn't see any function on self to obtain the complete path of the components, any ideas?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 14, 2022, 4:21pm UTC](https://forum.inductiveautomation.com/t/obtain-the-full-path-of-a-component-on-perspective/65234/2 "2022-10-14T16:21:41Z")

</div>

Components have a `getParent()` method. You can walk up using that until you get `None`, at which point you know you have the root container.
