# Get old value in Any Change alarm

**URL:** <https://forum.inductiveautomation.com/t/get-old-value-in-any-change-alarm/89360>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [April 24, 2024, 2:08pm UTC](https://forum.inductiveautomation.com/t/get-old-value-in-any-change-alarm/89360 "2024-04-24T14:08:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anthony\_ho](https://avatars.discourse-cdn.com/v4/letter/a/59ef9b/32.png) [@anthony\_ho](https://forum.inductiveautomation.com/u/anthony_ho)\
**Post date:** [April 24, 2024, 2:08pm UTC](https://forum.inductiveautomation.com/t/get-old-value-in-any-change-alarm/89360/1 "2024-04-24T14:08:39Z")

</div>

Hi,

Is there any way to get the old value in an Any Change alarm script? I am using a UDT and a few hundred instances to monitor machine settings. If someone changes a setting, we need to get a notification. But I can only get {value} as the new value.

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

Custom Message:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/9/392a7e612805ae662a04d8358aa386962284e660.png)

I try to avoid using the tag on-changed script just to get the previousValue and currnetValue as I will have to manually script email and alarm insertion.

Thanks!
