# \#ad-hoc-functions

**URL:** https://community.dynatrace.com/tag/ad-hoc-functions/232.md

[Latest](https://community.dynatrace.com/latest.md) · [Categories](https://community.dynatrace.com/categories.md) · [Tags](https://community.dynatrace.com/tags.md)

---

## [App Developer Certification Road Map](https://community.dynatrace.com/t/app-developer-certification-road-map/49675)

<div class="topic-metadata">

**Author:** [@MostafaHussein](https://community.dynatrace.com/u/MostafaHussein)\
**Replies:** 5\
**Last updated:** [May 12, 2026, 2:31pm UTC](https://community.dynatrace.com/t/app-developer-certification-road-map/49675 "2026-05-12T14:31:06Z")

</div>

Hi folks! This is my journey with Dynatrace App Developer certification and I hope this help everyone need to start in this great track. Before start in app development track you should learn both of (TypeScript and Re…

---

## [Retrieving dynatrace environment name in Javascript](https://community.dynatrace.com/t/retrieving-dynatrace-environment-name-in-javascript/46837)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 2\
**Last updated:** [July 26, 2024, 9:33am UTC](https://community.dynatrace.com/t/retrieving-dynatrace-environment-name-in-javascript/46837 "2024-07-26T09:33:53Z")

</div>

Good morning. Who knows how to retrieve the current environment in Javascript? KR Henk

---

## [Why does var replacement not work in snippet?](https://community.dynatrace.com/t/why-does-var-replacement-not-work-in-snippet/45687)

<div class="topic-metadata">

**Author:** [@henk\_stobbe](https://community.dynatrace.com/u/henk_stobbe)\
**Replies:** 1\
**Last updated:** [May 21, 2024, 6:33am UTC](https://community.dynatrace.com/t/why-does-var-replacement-not-work-in-snippet/45687 "2024-05-21T06:33:27Z")

</div>

Hello. I have defined two vars: and Using this snippet: export default async function () { return $Varx } Why does var2 (text) work? But var2 (CSV) not? KR Henk

---

## [Referencing variables outside of the default function now fails](https://community.dynatrace.com/t/referencing-variables-outside-of-the-default-function-now-fails/45144)

<div class="topic-metadata">

**Author:** [@thomas\_c](https://community.dynatrace.com/u/thomas_c)\
**Replies:** 4\
**Last updated:** [April 23, 2024, 8:27am UTC](https://community.dynatrace.com/t/referencing-variables-outside-of-the-default-function-now-fails/45144 "2024-04-23T08:27:49Z")

</div>

Hi Team, I just noticed new errors when loading certain code tiles in my dashboard: { "error": { "code": 540, "message": "Execution crashed.", "details": { "logs": "", "type": "UNCAUGHT\_EXCEPT…

---

## [Getting local tenant url in JavaScript (Workflow or any other JS Code)](https://community.dynatrace.com/t/getting-local-tenant-url-in-javascript-workflow-or-any-other-js-code/43129)

<div class="topic-metadata">

**Author:** [@andreas\_grabner](https://community.dynatrace.com/u/andreas_grabner)\
**Replies:** 2\
**Last updated:** [December 11, 2023, 5:28pm UTC](https://community.dynatrace.com/t/getting-local-tenant-url-in-javascript-workflow-or-any-other-js-code/43129 "2023-12-11T17:28:54Z")

</div>

Hi I am currently developing a workflow that is eventually sending a message to an external Chat Systems with a link back to the Dynatrace Environment that executes the workflow. I would like that workflow to not have …

---

## [Is it possible to use ad-hoc functions to query endpoints by looping?](https://community.dynatrace.com/t/is-it-possible-to-use-ad-hoc-functions-to-query-endpoints-by-looping/40680)

<div class="topic-metadata">

**Author:** [@MarcioKaue](https://community.dynatrace.com/u/MarcioKaue)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 3:09pm UTC](https://community.dynatrace.com/t/is-it-possible-to-use-ad-hoc-functions-to-query-endpoints-by-looping/40680 "2023-07-13T15:09:05Z")

</div>

Hey guys, We are testing the potential of using the new Dashboards with the use of Javascript, so you can concentrate the telemetry and governance data of my Managed Clusters in the SelfMonitoring environment. We would…

---

## [Error HTTP Error 540: Unknown when using Javascript code to get external data](https://community.dynatrace.com/t/error-http-error-540-unknown-when-using-javascript-code-to-get-external-data/40599)

<div class="topic-metadata">

**Author:** [@MarcioKaue](https://community.dynatrace.com/u/MarcioKaue)\
**Replies:** 2\
**Last updated:** [July 11, 2023, 12:28pm UTC](https://community.dynatrace.com/t/error-http-error-540-unknown-when-using-javascript-code-to-get-external-data/40599 "2023-07-11T12:28:59Z")

</div>

Hello everyone, everything good ? I’d like to see if anyone has explored creating javascript code for external data in the new Dynatrace Dashboards. We are working on indicators in our Selfmon environment that is consu…

---

## [Error when using the oneAgentOnAHostClient SDK](https://community.dynatrace.com/t/error-when-using-the-oneagentonahostclient-sdk/39671)

<div class="topic-metadata">

**Author:** [@thomas\_c](https://community.dynatrace.com/u/thomas_c)\
**Replies:** 1\
**Last updated:** [May 11, 2023, 6:38am UTC](https://community.dynatrace.com/t/error-when-using-the-oneagentonahostclient-sdk/39671 "2023-05-11T06:38:49Z")

</div>

Hi Team, I try to use the oneAgentOnAHostClient SDK but get the following error from a dashboard ad-hoc function: Similar symptom as in previous thread 210810. As an admin, I expect to be able to read information fr…

---

## [Error when using the deploymentClient SDK](https://community.dynatrace.com/t/error-when-using-the-deploymentclient-sdk/39670)

<div class="topic-metadata">

**Author:** [@thomas\_c](https://community.dynatrace.com/u/thomas_c)\
**Replies:** 1\
**Last updated:** [May 11, 2023, 6:38am UTC](https://community.dynatrace.com/t/error-when-using-the-deploymentclient-sdk/39670 "2023-05-11T06:38:03Z")

</div>

Hi Team, I try to use the deploymentClient SDK but get the following error from a dashboard ad-hoc function: Similar symptom as in previous thread 210810. As an admin, I expect to be able to read information from th…
