# Scripting - get Custom Property in Extension Functions

**URL:** <https://forum.inductiveautomation.com/t/scripting-get-custom-property-in-extension-functions/58528>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [April 17, 2022, 8:05am UTC](https://forum.inductiveautomation.com/t/scripting-get-custom-property-in-extension-functions/58528 "2022-04-17T08:05:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![FreddyR](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@FreddyR](https://forum.inductiveautomation.com/u/FreddyR)\
**Post date:** [April 17, 2022, 8:05am UTC](https://forum.inductiveautomation.com/t/scripting-get-custom-property-in-extension-functions/58528/1 "2022-04-17T08:05:47Z")

</div>

Hi everyone,  
I have a vision template and from “ **power table** ” in this template, under “ **Extension function** ”, I want to _ **access to one custom properties** _ of my Template which is under root container.

Any idea?  
to access to root container’s customer properties, it is:

**event.source.parent.getComponent().NameofCustomProperty**?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 17, 2022, 12:24pm UTC](https://forum.inductiveautomation.com/t/scripting-get-custom-property-in-extension-functions/58528/2 "2022-04-17T12:24:09Z")

</div>

For event routines (no `def` at the top), it would be `event.source.parent.NameOfCustomProperty`. In other routines (with `def`), use `self.parent.NameOfCustomProperty`.
