# Write to tag and set timestamp?

**URL:** <https://forum.inductiveautomation.com/t/write-to-tag-and-set-timestamp/60100>\
**Category:** Ignition\
**Created:** [May 27, 2022, 1:57am UTC](https://forum.inductiveautomation.com/t/write-to-tag-and-set-timestamp/60100 "2022-05-27T01:57:43Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 4, 2022, 7:19pm UTC](https://forum.inductiveautomation.com/t/write-to-tag-and-set-timestamp/60100/9 "2022-07-04T19:19:56Z")

</div>

So I’ve just tested this finally and have an issue.  
To recap, I retrieve a list of history for a point from an API and want to write this into Ignition’s history. I want to set the current value of the tag to the value of the latest historic record from the API _with the timestamp of the value taken from the historic timestamp_.

When I “allow back-fill of data” for the tag provider, I can use `system.tag.write*` to store history for the tag by supplying `BasicQualifiedValue`s, however the current value will _never_ be written to now since all values in the past are not written to the current value, and it would be incredibly rare for the api to return a historic value with `now()` as the timestamp.  
If I disable back-filling, then I can write to the history using `storeTagHistory` and I can write to the current value using `tag.write`, but then I lose the ability to write the timestamp of the current value…  
Is there any work around?

---

_[View the full topic](https://forum.inductiveautomation.com/t/write-to-tag-and-set-timestamp/60100)._
