# Accessing alarm pipeline properties from within a script block?

**URL:** <https://forum.inductiveautomation.com/t/accessing-alarm-pipeline-properties-from-within-a-script-block/36831>\
**Category:** Ignition\
**Created:** [July 17, 2020, 5:26pm UTC](https://forum.inductiveautomation.com/t/accessing-alarm-pipeline-properties-from-within-a-script-block/36831 "2020-07-17T17:26:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![daelan.scroggins](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@daelan.scroggins](https://forum.inductiveautomation.com/u/daelan.scroggins)\
**Post date:** [July 17, 2020, 5:26pm UTC](https://forum.inductiveautomation.com/t/accessing-alarm-pipeline-properties-from-within-a-script-block/36831/1 "2020-07-17T17:26:46Z")

</div>

I’m attempting to read/write to a property that I’ve declared in a “Set Property” block within an alarm pipeline, and I can’t seem to figure out how to access it from within a script block… Ultimately what I’m hoping to do is read a value from a database that will be used as a dynamic delay later on in the pipeline. I’ve reviewed the alarm pipeline documentation and I must be overlooking how the script blocks interact with properties… Could anyone point me in the right direction?

Thanks!

---

<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:** [July 17, 2020, 5:30pm UTC](https://forum.inductiveautomation.com/t/accessing-alarm-pipeline-properties-from-within-a-script-block/36831/2 "2020-07-17T17:30:47Z")

</div>

It’s subtly mentioned in the script block’s documentation comment at the beginning. Say you have a Set Property block setting `delay` as a local property - you can then retrieve that value with `event["delay"]` in the script:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/b/1b9270876c7f9d811163ef0668266a0437bfb306.png)

---

<div class="post-metadata">

**Author:** ![daelan.scroggins](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@daelan.scroggins](https://forum.inductiveautomation.com/u/daelan.scroggins)\
**Post date:** [July 17, 2020, 5:51pm UTC](https://forum.inductiveautomation.com/t/accessing-alarm-pipeline-properties-from-within-a-script-block/36831/3 "2020-07-17T17:51:16Z")

</div>

I was getting ready to reply with how I tried that already, and decided to do a quick sanity check and found that I actually like a dumb typo in my Set Property block…

I blame Friday…

Thanks!

---

<div class="post-metadata">

**Author:** ![awaege1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/awaege1/32/28922_2.png) [@awaege1](https://forum.inductiveautomation.com/u/awaege1)\
**Post date:** [May 23, 2022, 5:21pm UTC](https://forum.inductiveautomation.com/t/accessing-alarm-pipeline-properties-from-within-a-script-block/36831/4 "2022-05-23T17:21:54Z")

</div>

Is it possible to also set the value of local properties from the script block?

---

<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:** [May 23, 2022, 5:33pm UTC](https://forum.inductiveautomation.com/t/accessing-alarm-pipeline-properties-from-within-a-script-block/36831/5 "2022-05-23T17:33:06Z")

</div>

`event["property"] = someValue` will set a local property named `property` to `someValue`.
