# Creating/Updating a tag from module

**URL:** <https://forum.inductiveautomation.com/t/creating-updating-a-tag-from-module/95836>\
**Category:** Module Development\
**Created:** [September 11, 2024, 9:39am UTC](https://forum.inductiveautomation.com/t/creating-updating-a-tag-from-module/95836 "2024-09-11T09:39:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian\_carisey](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_carisey](https://forum.inductiveautomation.com/u/brian_carisey)\
**Post date:** [September 11, 2024, 9:39am UTC](https://forum.inductiveautomation.com/t/creating-updating-a-tag-from-module/95836/1 "2024-09-11T09:39:38Z")

</div>

Hello,  
I'm receiving data that is pushed into a sql database and i'm recovering it using SRConnection. Using the resulting dataset i'm trying to update or create an historical tag. My dataset contains the tagpath,the tag provider,the new value and the timestamp. I tried to use ManagedTagProvider and do a updateValue but the history doesn't appear to be working as i only got access to the latest value. What is the correct solution to make it work?
