Forum Discussion
Go_Ozeki
Oct 22, 2021Copper Contributor
How do I get multiple records in target period?
Hi all, I would like to retrieve multiple records within a period of time from a Device in IoT Central. Ex) Get the data of 100 records from the latest in Json format. Obtain the data with...
- Oct 22, 2021Hi,
You can't use the APIs at this point to get the historical telemetry data directly from IoT Central (you can get the history for commands and properties only). Furthermore, Azure IoT Central retains data on a rolling 30-days basis, which means you can't access data that is older than 30 days by default directly from IoT Central.
The recommend way to implement the scenario you are looking for is to use the continuous data export feature (https://docs.microsoft.com/azure/iot-central/core/howto-export-data) and then depending on where you send the data (Event Hub, Blob, ...) you can use these services API to revtreive the data you need
OlivierBloch
Oct 22, 2021Iron Contributor
Hi,
You can't use the APIs at this point to get the historical telemetry data directly from IoT Central (you can get the history for commands and properties only). Furthermore, Azure IoT Central retains data on a rolling 30-days basis, which means you can't access data that is older than 30 days by default directly from IoT Central.
The recommend way to implement the scenario you are looking for is to use the continuous data export feature (https://docs.microsoft.com/azure/iot-central/core/howto-export-data) and then depending on where you send the data (Event Hub, Blob, ...) you can use these services API to revtreive the data you need
You can't use the APIs at this point to get the historical telemetry data directly from IoT Central (you can get the history for commands and properties only). Furthermore, Azure IoT Central retains data on a rolling 30-days basis, which means you can't access data that is older than 30 days by default directly from IoT Central.
The recommend way to implement the scenario you are looking for is to use the continuous data export feature (https://docs.microsoft.com/azure/iot-central/core/howto-export-data) and then depending on where you send the data (Event Hub, Blob, ...) you can use these services API to revtreive the data you need
- Go_OzekiOct 25, 2021Copper Contributor
Hi OlivierBloch,
I understand that I cannot get the history data with IoT Central's API currently.
I will try to export the data to another service and use that service's API to get the history data.Thank you for help.