# How do I get a dictionary into "editAlarmConfig"?

**URL:** <https://forum.inductiveautomation.com/t/how-do-i-get-a-dictionary-into-editalarmconfig/12303>\
**Category:** Ignition\
**Created:** [October 28, 2016, 6:41pm UTC](https://forum.inductiveautomation.com/t/how-do-i-get-a-dictionary-into-editalarmconfig/12303 "2016-10-28T18:41:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lifejustice](https://avatars.discourse-cdn.com/v4/letter/l/7993a0/32.png) [@lifejustice](https://forum.inductiveautomation.com/u/lifejustice)\
**Post date:** [October 28, 2016, 6:41pm UTC](https://forum.inductiveautomation.com/t/how-do-i-get-a-dictionary-into-editalarmconfig/12303/1 "2016-10-28T18:41:13Z")

</div>

I am updating tag alarm properties in code. I was using the following code to update tag alarms. Everything was working great!

```auto
        #Get property name to Change
	PropertyName = "NewProperty"
	#Get property Value to Change
	PropertyValue = event.source.parent.getComponent("txtCustomProperty").text
	

	#Create Alarm configuration 
	alarmConfig = {AlarmName:[[PropertyName,"Value",PropertyValue]]}
	editTagPath = [tagPath]
	#Edit alarm configuration
	system.tag.editAlarmConfig(editTagPath,alarmConfig)
```

But there is a problem when I run this code with DataType Instance Tags. [color=#FF0040]This code will create/edit the “NewProperty” name and value, but it wipes out the existing alarm names and values. [/color]

So I need to make a work-around for this in which it doesn’t wipe out the other properties. I thought, “I should make a dictionary of the existing alarm properties and values, add my new customer property and value to it, and send that into the ‘editAlarmConfig’ function.”

But I have hit a bump: I made a dictionary of Alarm Properties and the Alarm Values. I can’t seem to figure out how to get this dictionary into the editAlarmConfig Function. I feel like I am fitting a square peg into a round hole.

The PropertyDictionary consists of PropertyName = Property Value keyed pairs.

```auto
        alarmConfig = {AlarmName:PropertyDictionary}
	editTagPath = [tagPath]
	#Edit alarm configuration
	system.tag.editAlarmConfig(editTagPath,alarmConfig)
```
