# maybe silly question about downloadDocumentContent

**URL:** <https://community.dynatrace.com/t/maybe-silly-question-about-downloaddocumentcontent/46142>\
**Category:** Developer Q&A Forum\
**Tags:** platform-services\
**Created:** [June 17, 2024, 8:24am UTC](https://community.dynatrace.com/t/maybe-silly-question-about-downloaddocumentcontent/46142 "2024-06-17T08:24:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 17, 2024, 8:24am UTC](https://community.dynatrace.com/t/maybe-silly-question-about-downloaddocumentcontent/46142/1 "2024-06-17T08:24:40Z")

</div>

Hello,

When using swagger you can get and view everything in your documents, but how about in a snippet?

It seems to return always:

 ![henk_stobbe_0-1718612620078.png](https://global.discourse-cdn.com/dynatrace/original/2X/2/25909672b9ea0721277bee8779cdedf7db90ab42.png)

Who can give me some help on this?

KR Henk

---

<div class="post-metadata">

**Author:** ![henk\_stobbe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/henk_stobbe/32/30434_2.png) [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Post date:** [June 17, 2024, 11:26am UTC](https://community.dynatrace.com/t/maybe-silly-question-about-downloaddocumentcontent/46142/2 "2024-06-17T11:26:12Z")

</div>

Thanks to below article

[Solved: How to store and retrieve documents from DocumentStore? - Dynatrace Community](https://community.dynatrace.com/topic/200271)

As an example!

import { documentsClient } from “@dynatrace-sdk/client-document”;

export default async function () {  
const data = await documentsClient.downloadDocumentContent({  
id: “61d98c92-a542-4444-8ab5-a960d4583b0b”,  
});;  
const result = JSON.parse(await data.get(“text”));  
return(result)  
}

KR Henk
