# Tag Change Event Properties

**URL:** <https://forum.inductiveautomation.com/t/tag-change-event-properties/58372>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [April 12, 2022, 6:51pm UTC](https://forum.inductiveautomation.com/t/tag-change-event-properties/58372 "2022-04-12T18:51:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robby.tanner](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@robby.tanner](https://forum.inductiveautomation.com/u/robby.tanner)\
**Post date:** [April 12, 2022, 6:51pm UTC](https://forum.inductiveautomation.com/t/tag-change-event-properties/58372/1 "2022-04-12T18:51:57Z")

</div>

I added a Gateway Tag Change Event script. I printed the event object and saw:

Event: ‘com.inductiveautomation.ignition.common.util.FilteredTagChangeListener$FilteredTagChangeEvent@55508c34[currentValue=[0, Bad Quality, Tue Apr 12 12:24:34 CST 2022],previousValue=,changes=[ValueChange, QualityChange, TimestampChange],tagPath=Test/Mem\_Tag,prop=Value,indexes=]’

It should be easy to retrieve current and previous values and what type of changes it is, but for the life of me, I can’t figure out how.

Any advice greatly appreciated…

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 12, 2022, 6:55pm UTC](https://forum.inductiveautomation.com/t/tag-change-event-properties/58372/2 "2022-04-12T18:55:57Z")

</div>

[https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts#GatewayEventScripts-TagChangeScripts](https://docs.inductiveautomation.com/display/DOC81/Gateway+Event+Scripts#GatewayEventScripts-TagChangeScripts)

The event object has `getCurrentValue()` and `getPreviousValue()` methods on it.

---

<div class="post-metadata">

**Author:** ![robby.tanner](https://avatars.discourse-cdn.com/v4/letter/r/c6cbf5/32.png) [@robby.tanner](https://forum.inductiveautomation.com/u/robby.tanner)\
**Post date:** [April 13, 2022, 12:31am UTC](https://forum.inductiveautomation.com/t/tag-change-event-properties/58372/3 "2022-04-13T00:31:51Z")

</div>

I think we’re using 7.9 and that didn’t show up at that place in the documentation. Version difference aside, it worked like a charm!!! Many thanks. 🙂

Cheers,  
Tanner
