# Perspective alarm jourmal, problem with associated data

**URL:** <https://forum.inductiveautomation.com/t/perspective-alarm-jourmal-problem-with-associated-data/101480>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 28, 2025, 10:52am UTC](https://forum.inductiveautomation.com/t/perspective-alarm-jourmal-problem-with-associated-data/101480 "2025-01-28T10:52:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pdeswert](https://avatars.discourse-cdn.com/v4/letter/p/a8b319/32.png) [@Pdeswert](https://forum.inductiveautomation.com/u/Pdeswert)\
**Post date:** [January 28, 2025, 10:52am UTC](https://forum.inductiveautomation.com/t/perspective-alarm-jourmal-problem-with-associated-data/101480/1 "2025-01-28T10:52:38Z")

</div>

Hello

I am having an issue with getting associated data from an alarm

The data in the alarm is dynamic and connected to a parameter of the UDT.

 ![afbeelding](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/6/2624615e625e49f0b6652df616204dc7b3ab444e.png)

However:

- the associated data does not appear in the selected data prop of the alarm journal  

- when I used scripting to get the whole datapackage from the alarm the associated data is included, however the fieldname does not appear as ViewCode2, but as com.inductiveautomation.ignition.common.alarming.config.AssociatedData@474e0e12

how do I solve this ?

---

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [January 28, 2025, 11:44am UTC](https://forum.inductiveautomation.com/t/perspective-alarm-jourmal-problem-with-associated-data/101480/2 "2025-01-28T11:44:21Z")

</div>

I use the following script to get the associated data

```python
#Get Alarms
alarms=system.alarm.queryStatus(state=["ActiveUnacked","ActiveAcked"])

#Loop through alarms
for alarm in alarms:
	print str(alarm.get('#InsertHereTheNameOfAssociatedData'))

```

I also not use the alarm status/journal object but a simple table. I found it easier to personnalize.

Hope this helps
