# How to use Custom Property in Power Table Scripting?

**URL:** <https://forum.inductiveautomation.com/t/how-to-use-custom-property-in-power-table-scripting/31450>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [January 21, 2020, 1:41am UTC](https://forum.inductiveautomation.com/t/how-to-use-custom-property-in-power-table-scripting/31450 "2020-01-21T01:41:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulm1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paulm1/32/5900_2.png) [@paulm1](https://forum.inductiveautomation.com/u/paulm1)\
**Post date:** [January 21, 2020, 1:41am UTC](https://forum.inductiveautomation.com/t/how-to-use-custom-property-in-power-table-scripting/31450/1 "2020-01-21T01:41:10Z")

</div>

I have a Power Table and would like to change the background color of individual rows based on values from Custom Properties residing in the Root Container.

Below is the definition for my Custom Property named DaysSincePM. this custom property is an Integer.

 ![PowerTable%20use%20custom%20prop%20for%20background2](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/ba06a2ff48d7bc110ec8b17d2ee23729105bd4b7.png)

This next pic is what I have in my Power Table scripting.

 ![PowerTable%20use%20custom%20prop%20for%20background1](https://us1.discourse-cdn.com/inductiveautomation/original/2X/0/009c902c8ac6a9de947bf2bffed518653c453e2f.png)

Where am I messing up?

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [January 21, 2020, 2:27am UTC](https://forum.inductiveautomation.com/t/how-to-use-custom-property-in-power-table-scripting/31450/2 "2020-01-21T02:27:33Z")

</div>

Your property name is **D** aysSincePM but your script is looking for **d** aysSincePM. Case matters.

---

<div class="post-metadata">

**Author:** ![paulm1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paulm1/32/5900_2.png) [@paulm1](https://forum.inductiveautomation.com/u/paulm1)\
**Post date:** [January 21, 2020, 2:45am UTC](https://forum.inductiveautomation.com/t/how-to-use-custom-property-in-power-table-scripting/31450/3 "2020-01-21T02:45:01Z")

</div>

This is what I get when I’m in a rush.  
Thank you, I love it when the solution is simple and I’m the problem.
