# Best practice for storing data from the Dynatrace API

**URL:** <https://community.dynatrace.com/t/best-practice-for-storing-data-from-the-dynatrace-api/41317>\
**Category:** Developer Q&A Forum\
**Tags:** grail, custom-app, data-ingest\
**Created:** [August 23, 2023, 8:08am UTC](https://community.dynatrace.com/t/best-practice-for-storing-data-from-the-dynatrace-api/41317 "2023-08-23T08:08:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jegron](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jegron/32/12797_2.png) [@jegron](https://community.dynatrace.com/u/jegron)\
**Post date:** [August 23, 2023, 8:08am UTC](https://community.dynatrace.com/t/best-practice-for-storing-data-from-the-dynatrace-api/41317/1 "2023-08-23T08:08:14Z")

</div>

Hello,

What is the best practice for polling data recurrently from the Dynatrace API and ingesting the results into Grail?

I’ve started exploring the SDK for the Classic Environment and it works on page loading. But no history.

Do I need to use a Workflow to ingest the data into Grail and then play the DQL query in the AppEngine? Or should I use an App function ?

Thanks for your help !

---

_[View the full topic](https://community.dynatrace.com/t/best-practice-for-storing-data-from-the-dynatrace-api/41317)._
