cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

maybe silly question about downloadDocumentContent

henk_stobbe
DynaMight Leader
DynaMight Leader

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

 

Who can give me some help on this?

KR Henk

1 REPLY 1

henk_stobbe
DynaMight Leader
DynaMight Leader

Thanks to below article

Solved: How to store and retrieve documents from DocumentStore? - Dynatrace Community

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

Featured Posts