# Is there an easy way to extract all the data types (template, record, enum, variant) from a Daml model?

**URL:** <https://forum.canton.network/t/is-there-an-easy-way-to-extract-all-the-data-types-template-record-enum-variant-from-a-daml-model/6551>\
**Category:** App Development\
**Created:** [May 15, 2023, 8:54am UTC](https://forum.canton.network/t/is-there-an-easy-way-to-extract-all-the-data-types-template-record-enum-variant-from-a-daml-model/6551 "2023-05-15T08:54:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gyorgybalazsi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gyorgybalazsi/32/684_2.png) [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Post date:** [May 15, 2023, 8:54am UTC](https://forum.canton.network/t/is-there-an-easy-way-to-extract-all-the-data-types-template-record-enum-variant-from-a-daml-model/6551/1 "2023-05-15T08:54:22Z")

</div>

The Outline pane of VSCode uses this information, so there must be a way.

---

<div class="post-metadata">

**Author:** ![Stephen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/stephen/32/102_2.png) [@Stephen](https://forum.canton.network/u/Stephen)\
**Post date:** [May 15, 2023, 2:57pm UTC](https://forum.canton.network/t/is-there-an-easy-way-to-extract-all-the-data-types-template-record-enum-variant-from-a-daml-model/6551/2 "2023-05-15T14:57:32Z")

</div>

If by “extract” you mean “produce a data structure describing definitions I can use in my own programs”, then [this is a quick summary](https://discuss.daml.com/t/template-ids-extraction/4612/4), and some [longer discussion here](https://discuss.daml.com/t/template-json-payload-identification/2641/7), that might be of use.

---

<div class="post-metadata">

**Author:** ![gyorgybalazsi](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gyorgybalazsi/32/684_2.png) [@gyorgybalazsi](https://forum.canton.network/u/gyorgybalazsi)\
**Post date:** [May 15, 2023, 6:03pm UTC](https://forum.canton.network/t/is-there-an-easy-way-to-extract-all-the-data-types-template-record-enum-variant-from-a-daml-model/6551/3 "2023-05-15T18:03:19Z")

</div>

Thank you, Stephen!
