# Using javascript code on Dynatrace

**URL:** <https://community.dynatrace.com/t/using-javascript-code-on-dynatrace/45411>\
**Category:** Automations\
**Tags:** notebooks, dashboards, javascript\
**Created:** [May 2, 2024, 3:35pm UTC](https://community.dynatrace.com/t/using-javascript-code-on-dynatrace/45411 "2024-05-02T15:35:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![soportetr](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@soportetr](https://community.dynatrace.com/u/soportetr)\
**Post date:** [May 2, 2024, 3:35pm UTC](https://community.dynatrace.com/t/using-javascript-code-on-dynatrace/45411/1 "2024-05-02T15:35:27Z")

</div>

Hi everyone,

I would like to execute a javascript code to call a database inside Dynatrace and I have seen that in the new dashboards and notebooks I can add external code and execute them:

 ![soportetr_0-1714663930163.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/f/6f6eecd2cf30dce8c10a704bdbb14f896eb9a41b.png)

 ![soportetr_1-1714664076276.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/c3659e631ed535fbfdbbfe1edd425b048ddb0e74.png)

To do this, do I have to follow some steps? or is it just entering the code as if I were programming in an IDE?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![jaume\_reverte](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jaume_reverte/32/1479_2.png) [@jaume\_reverte](https://community.dynatrace.com/u/jaume_reverte)\
**Post date:** [June 5, 2024, 8:36am UTC](https://community.dynatrace.com/t/using-javascript-code-on-dynatrace/45411/2 "2024-06-05T08:36:34Z")

</div>

Hello soportetr,

Yes you can code directly inside [notebooks](https://docs.dynatrace.com/docs/shortlink/notebooks#code) and [dashboards](https://docs.dynatrace.com/docs/shortlink/dashboard-component-code) in Dynatrace as if you were a programming in and IDE.
