# Replacing array data

**URL:** <https://forum.inductiveautomation.com/t/replacing-array-data/35100>\
**Category:** Ignition\
**Created:** [May 27, 2020, 8:49pm UTC](https://forum.inductiveautomation.com/t/replacing-array-data/35100 "2020-05-27T20:49:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AFULLER](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/afuller/32/7931_2.png) [@AFULLER](https://forum.inductiveautomation.com/u/AFULLER)\
**Post date:** [May 27, 2020, 8:49pm UTC](https://forum.inductiveautomation.com/t/replacing-array-data/35100/1 "2020-05-27T20:49:37Z")

</div>

What is the correct syntax to replace array data? The array is spawned from UDT, trying to replace some baseline values. Appreciate any help.

tagPath = “COATER/Historian\_Data/RECIPE/CTR\_REC\_IMPORT\_ACT/CTR\_REC\_IMPORT\_ACT/INT1[3]”

tagValueArray = system.tag.read(tagPath).value  
tagValueArray.append(“COATER/Historian\_Data/RECIPE/7282-1830/7282-1830/INT1[8]”)

system.tag.write(tagPath, tagValueArray)
