# Insert old state device data

**URL:** <https://forums.losant.com/t/insert-old-state-device-data/808>\
**Category:** Help\
**Created:** [March 14, 2018, 7:42pm UTC](https://forums.losant.com/t/insert-old-state-device-data/808 "2018-03-14T19:42:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Javier\_Ferreyra](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/javier_ferreyra/32/396_2.png) [@Javier\_Ferreyra](https://forums.losant.com/u/Javier_Ferreyra)\
**Post date:** [March 14, 2018, 7:42pm UTC](https://forums.losant.com/t/insert-old-state-device-data/808/1 "2018-03-14T19:42:17Z")

</div>

Hi team.  
I have received a question, regarding data that was not sent to losant at the time the sensor captured it, but some time later, when the connectivity is restored, the device somehow managed to send the “old” data and insert it into an existing table. Is that possible ? Which would be the proper way to accomplish that?Would it be able to display that data within the graph inside the dasboard? Thanks a lot

---

<div class="post-metadata">

**Author:** ![Michael\_Kuehl](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/michael_kuehl/32/99_2.png) [@Michael\_Kuehl](https://forums.losant.com/u/Michael_Kuehl)\
**Post date:** [March 15, 2018, 12:35am UTC](https://forums.losant.com/t/insert-old-state-device-data/808/2 "2018-03-15T00:35:31Z")

</div>

Yes, that is possible! State reports have an optional time field, which allow you to report state “from the past”, you can read more about it [here](https://docs.losant.com/devices/state/#including-timestamps). One of the main reasons for this is exactly the situation you describe - devices that are only online once a day or even less.

---

<div class="post-metadata">

**Author:** ![Test\_Board](https://avatars.discourse-cdn.com/v4/letter/t/bb73d2/32.png) [@Test\_Board](https://forums.losant.com/u/Test_Board)\
**Post date:** [March 15, 2018, 1:44am UTC](https://forums.losant.com/t/insert-old-state-device-data/808/3 "2018-03-15T01:44:33Z")

</div>

Thanks so much… very kind…
