# Custom property access in runScript within Expressions

**URL:** <https://forum.inductiveautomation.com/t/custom-property-access-in-runscript-within-expressions/11271>\
**Category:** Ignition\
**Created:** [February 25, 2016, 10:19pm UTC](https://forum.inductiveautomation.com/t/custom-property-access-in-runscript-within-expressions/11271 "2016-02-25T22:19:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kstofcho](https://avatars.discourse-cdn.com/v4/letter/k/a9a28c/32.png) [@Kstofcho](https://forum.inductiveautomation.com/u/Kstofcho)\
**Post date:** [February 25, 2016, 10:19pm UTC](https://forum.inductiveautomation.com/t/custom-property-access-in-runscript-within-expressions/11271/1 "2016-02-25T22:19:05Z")

</div>

Hello,

I have written a few custom scripts for use in expression bindings on custom properties. I am wondering how, if possible, to access other custom properties within the runScript code. For example:

runScript(“project.customfunction({Root Container.property})”)

The scripts will work with a dumb text input but not with a reference to a property. Is there a correct way to reference properties?

Thank you!

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [February 25, 2016, 11:50pm UTC](https://forum.inductiveautomation.com/t/custom-property-access-in-runscript-within-expressions/11271/2 "2016-02-25T23:50:29Z")

</div>

The property must have a string value or be converted to a string. You can do it like this:

`
runScript("project.pymodule.customfunction('"+{Root Container.property}+"')")
`Best,
