# \#javascript

**URL:** https://community.dynatrace.com/tag/javascript/301.md

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

---

## [Unable to populate built-in appVersion field in RUM User Sessions using dtrum.sendSessionProperties()](https://community.dynatrace.com/t/unable-to-populate-built-in-appversion-field-in-rum-user-sessions-using-dtrum-sendsessionproperties/57120)

<div class="topic-metadata">

**Author:** [@Mohsen](https://community.dynatrace.com/u/Mohsen)\
**Replies:** 1\
**Last updated:** [October 11, 2026, 6:29pm UTC](https://community.dynatrace.com/t/unable-to-populate-built-in-appversion-field-in-rum-user-sessions-using-dtrum-sendsessionproperties/57120 "2026-10-11T18:29:31Z")

</div>

Hi everyone, I’m using the Dynatrace Serverless Agent JavaScript in a React web application and I’m trying to populate the built-in appVersion field that appears in User Sessions Query. I currently send session propert…

---

## [RUM | CSP | Nonce or Hash, how to add to JavaScript tag (and CSP header) manually](https://community.dynatrace.com/t/rum-csp-nonce-or-hash-how-to-add-to-javascript-tag-and-csp-header-manually/31596)

<div class="topic-metadata">

**Author:** [@fstekelenburg](https://community.dynatrace.com/u/fstekelenburg)\
**Replies:** 4\
**Last updated:** [September 28, 2026, 5:28pm UTC](https://community.dynatrace.com/t/rum-csp-nonce-or-hash-how-to-add-to-javascript-tag-and-csp-header-manually/31596 "2026-09-28T17:28:15Z")

</div>

Due to the increasing security contraints of our customers we are looking at the impact and requirements to have RUM working with CSP applied, as also described in Modify Content Security Policy for RUM | Dynatrace Docum…

---

## [Where can I see logs from api.info() / api.warn() / api.error() in Synthetic JavaScript steps?](https://community.dynatrace.com/t/where-can-i-see-logs-from-api-info-api-warn-api-error-in-synthetic-javascript-steps/54511)

<div class="topic-metadata">

**Author:** [@deni](https://community.dynatrace.com/u/deni)\
**Replies:** 6\
**Last updated:** [September 18, 2026, 3:14pm UTC](https://community.dynatrace.com/t/where-can-i-see-logs-from-api-info-api-warn-api-error-in-synthetic-javascript-steps/54511 "2026-09-18T15:14:00Z")

</div>

Hi, I’m working with Synthetic monitors (Browser / JavaScript steps) and I’m trying to understand where logs generated via JavaScript APIs are actually visible. In my JavaScript step I’m using: api.info() api.warn() a…

---

## [How to access Dynatrace platform API from a synthetic browser test](https://community.dynatrace.com/t/how-to-access-dynatrace-platform-api-from-a-synthetic-browser-test/56456)

<div class="topic-metadata">

**Author:** [@gilgi](https://community.dynatrace.com/u/gilgi)\
**Replies:** 11\
**Last updated:** [September 18, 2026, 2:00pm UTC](https://community.dynatrace.com/t/how-to-access-dynatrace-platform-api-from-a-synthetic-browser-test/56456 "2026-09-18T14:00:53Z")

</div>

Hi, We’re trying to build asynthetic browser test against a site that requires OTP. As there is no direct API to get the OTP data from the provider we need to bypass it so we’ve created a “back door” workflow to extrac…

---

## [Application HTML not rendering correctly when Dynatrace OneAgent monitoring is enabled/](https://community.dynatrace.com/t/application-html-not-rendering-correctly-when-dynatrace-oneagent-monitoring-is-enabled/56905)

<div class="topic-metadata">

**Author:** [@fathehah10](https://community.dynatrace.com/u/fathehah10)\
**Replies:** 1\
**Last updated:** [September 8, 2026, 9:30am UTC](https://community.dynatrace.com/t/application-html-not-rendering-correctly-when-dynatrace-oneagent-monitoring-is-enabled/56905 "2026-09-08T09:30:46Z")

</div>

Hi everyone, We are troubleshooting an issue where an application’s login page does not render correctly in the browser. Instead, the HTML content appears to be displayed as text rather than being rendered as a webpage. …

---

## [How to get session properties from sessionStorage (Experience Vitals vesion)](https://community.dynatrace.com/t/how-to-get-session-properties-from-sessionstorage-experience-vitals-vesion/56628)

<div class="topic-metadata">

**Author:** [@Tommaso\_Fin](https://community.dynatrace.com/u/Tommaso_Fin)\
**Replies:** 3\
**Last updated:** [August 26, 2026, 7:18pm UTC](https://community.dynatrace.com/t/how-to-get-session-properties-from-sessionstorage-experience-vitals-vesion/56628 "2026-08-26T19:18:52Z")

</div>

Hi, I’m migrating my RUM monitoring from Frontend classic to Experience Vitals. In the classic Frontend app I configured to get session properties from sessionStorage in this way: Source type: JavaScript variable Cap…

---

## [Set DQL Query in Dashboard Variable](https://community.dynatrace.com/t/set-dql-query-in-dashboard-variable/56038)

<div class="topic-metadata">

**Author:** [@gdalessandro](https://community.dynatrace.com/u/gdalessandro)\
**Replies:** 4\
**Last updated:** [May 29, 2026, 5:01pm UTC](https://community.dynatrace.com/t/set-dql-query-in-dashboard-variable/56038 "2026-05-29T17:01:06Z")

</div>

I am attempting to build my own custom SLO dashboard using the Grail SLOs we have defined in our environment. I am able to successfully query the SLO list using javascript and I can list out the metadata found on the SL…

---

## [Obtain synthetic variable via workflow](https://community.dynatrace.com/t/obtain-synthetic-variable-via-workflow/55798)

<div class="topic-metadata">

**Author:** [@elenaperez](https://community.dynatrace.com/u/elenaperez)\
**Replies:** 20\
**Last updated:** [May 12, 2026, 7:21am UTC](https://community.dynatrace.com/t/obtain-synthetic-variable-via-workflow/55798 "2026-05-12T07:21:00Z")

</div>

Hi team, I am trying to create a synthetic monitor that obtains a token via JavaScript and then makes an API call using that token as the Authorization token. After the API call, I want to send the result in an email. …

---

## [New RUM disable capture console error](https://community.dynatrace.com/t/new-rum-disable-capture-console-error/55684)

<div class="topic-metadata">

**Author:** [@TCA](https://community.dynatrace.com/u/TCA)\
**Replies:** 0\
**Last updated:** [April 23, 2026, 5:56pm UTC](https://community.dynatrace.com/t/new-rum-disable-capture-console-error/55684 "2026-04-23T17:56:38Z")

</div>

In the new rum I want to disable the console capture of error logs, to rely on the dtrum js api, as the error logs format are not well parsed by the rum agent. How can I disable it ? In the previous RUM we had to remove …

---

## [Error discrepancy between Web Applications and Error Inspector](https://community.dynatrace.com/t/error-discrepancy-between-web-applications-and-error-inspector/55552)

<div class="topic-metadata">

**Author:** [@jakubwolanin](https://community.dynatrace.com/u/jakubwolanin)\
**Replies:** 1\
**Last updated:** [April 14, 2026, 10:44am UTC](https://community.dynatrace.com/t/error-discrepancy-between-web-applications-and-error-inspector/55552 "2026-04-14T10:44:04Z")

</div>

Under Web Applications, I’m trying to investigate JavaScript errors, but I’ve noticed that many of them are missing compared to what I see in Error Inspector. We are not sending any custom errors and are using the defaul…

---

## [Why Session Replay Is Missing for Standard Web Application (without OneAgent)](https://community.dynatrace.com/t/why-session-replay-is-missing-for-standard-web-application-without-oneagent/55239)

<div class="topic-metadata">

**Author:** [@freddymerlin](https://community.dynatrace.com/u/freddymerlin)\
**Replies:** 1\
**Last updated:** [March 17, 2026, 1:55pm UTC](https://community.dynatrace.com/t/why-session-replay-is-missing-for-standard-web-application-without-oneagent/55239 "2026-03-17T13:55:26Z")

</div>

Overview This article explains why RUM works, but Session Replay doesn’t when a standard web application entity is used with the CDN‑based JavaScript tag snippet to manually instrument a web application whose underlying …

---

## [Re using SendEvent not being logged in Dynatrace](https://community.dynatrace.com/t/re-using-sendevent-not-being-logged-in-dynatrace/55064)

<div class="topic-metadata">

**Author:** [@mkarmocha](https://community.dynatrace.com/u/mkarmocha)\
**Replies:** 8\
**Last updated:** [March 16, 2026, 7:53pm UTC](https://community.dynatrace.com/t/re-using-sendevent-not-being-logged-in-dynatrace/55064 "2026-03-16T19:53:24Z")

</div>

I am currently using sendEvent, identifyUser method in my application as suggested in documentation RUM JavaScript SDK Overview | RUM JavaScript API - 1.351.2 What do i need to configure or set in my dynatrace to see th…

---

## [RUM JavaScript Agent returns 'URL is not a constructor' error](https://community.dynatrace.com/t/rum-javascript-agent-returns-url-is-not-a-constructor-error/54952)

<div class="topic-metadata">

**Author:** [@Ana\_Alvear](https://community.dynatrace.com/u/Ana_Alvear)\
**Replies:** 1\
**Last updated:** [March 9, 2026, 11:42am UTC](https://community.dynatrace.com/t/rum-javascript-agent-returns-url-is-not-a-constructor-error/54952 "2026-03-09T11:42:00Z")

</div>

Summary Applications monitored by RUM generate JavaScript errors referring to ‘URL is not a constructor’ when using RUM Agent 1.329 or higher. This is caused by the RUM Agent using the URL constructor to validate origins…

---

## [An error has occurred in the script on this page](https://community.dynatrace.com/t/an-error-has-occurred-in-the-script-on-this-page/55181)

<div class="topic-metadata">

**Author:** [@Hugo1984](https://community.dynatrace.com/u/Hugo1984)\
**Replies:** 2\
**Last updated:** [March 5, 2026, 8:02am UTC](https://community.dynatrace.com/t/an-error-has-occurred-in-the-script-on-this-page/55181 "2026-03-05T08:02:24Z")

</div>

At two of our clients, users use a DMS system. Users are encountering a script error when attempting to edit documents within the DMS system.One application called SIRIS uses a plugin in your internet browser. The other,…

---

## [Cache application error tracing!](https://community.dynatrace.com/t/cache-application-error-tracing/51040)

<div class="topic-metadata">

**Author:** [@gauravpayghan\_1](https://community.dynatrace.com/u/gauravpayghan_1)\
**Replies:** 1\
**Last updated:** [February 9, 2026, 10:05pm UTC](https://community.dynatrace.com/t/cache-application-error-tracing/51040 "2026-02-09T22:05:32Z")

</div>

The issue we would like help monitoring is our XYZ cache. Sometimes, when we do a prod push for our UI the XYZ cache will be corrupted and the page will not load correctly. It will still return a 200 success response, bu…

---

## [RUM JavaScript Agent gives a 'not iterable error' on Symbol.iterator](https://community.dynatrace.com/t/rum-javascript-agent-gives-a-not-iterable-error-on-symbol-iterator/54779)

<div class="topic-metadata">

**Author:** [@Bill\_Emerson](https://community.dynatrace.com/u/Bill_Emerson)\
**Replies:** 0\
**Last updated:** [January 28, 2026, 3:43pm UTC](https://community.dynatrace.com/t/rum-javascript-agent-gives-a-not-iterable-error-on-symbol-iterator/54779 "2026-01-28T15:43:04Z")

</div>

Summary Applications monitored by RUM generate JavaScript errors referring to Symbol.iterator when using RUM Agent 1.329 or higher. This is caused by the RUM Agent interacting with code that implements Array.prototype.fi…

---

## [Synthetic monitor – counting api.fail() by message & custom error code](https://community.dynatrace.com/t/synthetic-monitor-counting-api-fail-by-message-custom-error-code/54512)

<div class="topic-metadata">

**Author:** [@deni](https://community.dynatrace.com/u/deni)\
**Replies:** 6\
**Last updated:** [January 5, 2026, 8:36am UTC](https://community.dynatrace.com/t/synthetic-monitor-counting-api-fail-by-message-custom-error-code/54512 "2026-01-05T08:36:08Z")

</div>

Hi, I have a Browser Synthetic monitor with a JavaScript step, where under certain conditions I explicitly fail the execution using: api.fail("My message"); What I’m trying to achieve is: a metric that counts failur…

---

## [Parse JSON array from DQL in workflows](https://community.dynatrace.com/t/parse-json-array-from-dql-in-workflows/52991)

<div class="topic-metadata">

**Author:** [@Jan\_VanBelle](https://community.dynatrace.com/u/Jan_VanBelle)\
**Replies:** 1\
**Last updated:** [December 15, 2025, 10:48am UTC](https://community.dynatrace.com/t/parse-json-array-from-dql-in-workflows/52991 "2025-12-15T10:48:49Z")

</div>

Hello, We’re trying to do something with records which have been open for a period of time. So I’ve created a workflow with (for now: ) 2 steps: fetch the data via a DQL query --\> works fine parse the DQL output and …

---

## [How to Create a Dashboard Listing JavaScript Errors in My Application](https://community.dynatrace.com/t/how-to-create-a-dashboard-listing-javascript-errors-in-my-application/53169)

<div class="topic-metadata">

**Author:** [@marusla](https://community.dynatrace.com/u/marusla)\
**Replies:** 2\
**Last updated:** [November 21, 2025, 10:42am UTC](https://community.dynatrace.com/t/how-to-create-a-dashboard-listing-javascript-errors-in-my-application/53169 "2025-11-21T10:42:24Z")

</div>

Is there a way to get a list of all JavaScript errors from my applications? I want to create a dashboard with that information. I already have a list of all 400 and 500 errors from my web applications, but I don’t know h…

---

## [Dedicated container in Kubernetes for Dynatrace RUM](https://community.dynatrace.com/t/dedicated-container-in-kubernetes-for-dynatrace-rum/18666)

<div class="topic-metadata">

**Author:** [@gmichels](https://community.dynatrace.com/u/gmichels)\
**Replies:** 11\
**Last updated:** [October 28, 2025, 1:33pm UTC](https://community.dynatrace.com/t/dedicated-container-in-kubernetes-for-dynatrace-rum/18666 "2025-10-28T13:33:43Z")

</div>

Hello everyone, I’d like to have a dedicated container running nginx in Kubernetes, specific for serving the JavaScript agent files and receiving the beacon data from the browser POSTs. I would go into the Dynatrace app…

---

## [Session Propertiers](https://community.dynatrace.com/t/session-propertiers/53503)

<div class="topic-metadata">

**Author:** [@juanrergis](https://community.dynatrace.com/u/juanrergis)\
**Replies:** 1\
**Last updated:** [September 24, 2025, 11:40pm UTC](https://community.dynatrace.com/t/session-propertiers/53503 "2025-09-24T23:40:28Z")

</div>

I have a variable within my application that contains a Key and Value variable. How can I extract the variables to obtain this data from the user sessions? For example: the variable is called “offer.” Inside it is a JSON…

---

## [Select a specific element within the useraction.name array](https://community.dynatrace.com/t/select-a-specific-element-within-the-useraction-name-array/53381)

<div class="topic-metadata">

**Author:** [@loopy](https://community.dynatrace.com/u/loopy)\
**Replies:** 2\
**Last updated:** [September 17, 2025, 7:15am UTC](https://community.dynatrace.com/t/select-a-specific-element-within-the-useraction-name-array/53381 "2025-09-17T07:15:36Z")

</div>

When performing the User Session Query select useraction.name from usersession the names of the actions are returned in what looks like an array. The problem statement is I would like to know after the home page where us…

---

## [API execution through JS](https://community.dynatrace.com/t/api-execution-through-js/51565)

<div class="topic-metadata">

**Author:** [@Dyno193](https://community.dynatrace.com/u/Dyno193)\
**Replies:** 3\
**Last updated:** [September 8, 2025, 11:39am UTC](https://community.dynatrace.com/t/api-execution-through-js/51565 "2025-09-08T11:39:25Z")

</div>

Is it possible to execute API request right though Javascript within Workflows? Example: import fetch from ‘node-fetch’; export default async function ({ executionId }) { const apiToken = ‘YOUR\_API\_TOKEN’; // Replace…

---

## [Keycloak (Netty) + RUM agentless (CDN) — snippet doesn't appear on login screens; OneAgent auto-injection also fails](https://community.dynatrace.com/t/keycloak-netty-rum-agentless-cdn-snippet-doesnt-appear-on-login-screens-oneagent-auto-injection-also-fails/53197)

<div class="topic-metadata">

**Author:** [@mioroo](https://community.dynatrace.com/u/mioroo)\
**Replies:** 1\
**Last updated:** [September 3, 2025, 9:53am UTC](https://community.dynatrace.com/t/keycloak-netty-rum-agentless-cdn-snippet-doesnt-appear-on-login-screens-oneagent-auto-injection-also-fails/53197 "2025-09-03T09:53:49Z")

</div>

Context • IdP: Keycloak (Netty technology) behind AWS CloudFront • Objective: Use agentless Real User Monitoring with JavaScript tag (Dynatrace CDN) • Desired beacon endpoint (agentless): Dynatrace SaaS/Cluster (…bf.d…

---

## [Fix JavaScript Error: ruxitagentjs in Dynatrace](https://community.dynatrace.com/t/fix-javascript-error-ruxitagentjs-in-dynatrace/40340)

<div class="topic-metadata">

**Author:** [@Balaramkumar](https://community.dynatrace.com/u/Balaramkumar)\
**Replies:** 9\
**Last updated:** [July 17, 2025, 1:46am UTC](https://community.dynatrace.com/t/fix-javascript-error-ruxitagentjs-in-dynatrace/40340 "2025-07-17T01:46:36Z")

</div>

Summary: This thread explains how to troubleshoot the ruxitagentjs JavaScript error in Dynatrace. It covers common causes such as script injection issues and provides actionable steps to restore Real User Monitoring func…

---

## [RUM injection failure when Azure Front Door caching enabled](https://community.dynatrace.com/t/rum-injection-failure-when-azure-front-door-caching-enabled/42023)

<div class="topic-metadata">

**Author:** [@GregOReilly](https://community.dynatrace.com/u/GregOReilly)\
**Replies:** 4\
**Last updated:** [July 14, 2025, 1:55pm UTC](https://community.dynatrace.com/t/rum-injection-failure-when-azure-front-door-caching-enabled/42023 "2025-07-14T13:55:59Z")

</div>

We have found an issue when using kuberneres+OneAgent+RUM injection with some applications. Support helped us to eliminate possible causes and to narrow in on caching at the AFD level. When caching is enabled, RUM injec…

---

## [Bypass Chrome authentication pop-up in a Synthetic browser monitor](https://community.dynatrace.com/t/bypass-chrome-authentication-pop-up-in-a-synthetic-browser-monitor/20515)

<div class="topic-metadata">

**Author:** [@bill\_scheuernst](https://community.dynatrace.com/u/bill_scheuernst)\
**Replies:** 11\
**Last updated:** [June 26, 2025, 7:40am UTC](https://community.dynatrace.com/t/bypass-chrome-authentication-pop-up-in-a-synthetic-browser-monitor/20515 "2025-06-26T07:40:17Z")

</div>

Is there a way to bypass the Chrome authentication pop-up in a Synthetic browser monitor? For lack of a better way of saying this…can this be “hacked” or bypassed with JavaScript as another synthetic step prior to access…

---

## [How to Determine DTRUM Session IDs via JS API](https://community.dynatrace.com/t/how-to-determine-dtrum-session-ids-via-js-api/51869)

<div class="topic-metadata">

**Author:** [@RR123](https://community.dynatrace.com/u/RR123)\
**Replies:** 2\
**Last updated:** [June 16, 2025, 3:48pm UTC](https://community.dynatrace.com/t/how-to-determine-dtrum-session-ids-via-js-api/51869 "2025-06-16T15:48:14Z")

</div>

Suppose I retrieve the Dynatrace RUM JS tag based on what I see from here GET OneAgent JavaScript tag — Dynatrace Docs. I would like to receive details regarding the dtrum session in the browser. As soon as dtrum is loa…

---

## [Use the Dashboard variable in a code block](https://community.dynatrace.com/t/use-the-dashboard-variable-in-a-code-block/52113)

<div class="topic-metadata">

**Author:** [@jmarbaix](https://community.dynatrace.com/u/jmarbaix)\
**Replies:** 2\
**Last updated:** [June 16, 2025, 11:21am UTC](https://community.dynatrace.com/t/use-the-dashboard-variable-in-a-code-block/52113 "2025-06-16T11:21:31Z")

</div>

I would like to use a dashboard variable in a code block, but I can’t seem find any documentation on how to do this. Is there even a way to do this?

---

## [Javascript action to write result of DQL query to file in a workflow, and then load that data in a Notebook via Javascript action?](https://community.dynatrace.com/t/javascript-action-to-write-result-of-dql-query-to-file-in-a-workflow-and-then-load-that-data-in-a-notebook-via-javascript-action/51647)

<div class="topic-metadata">

**Author:** [@FShimaya](https://community.dynatrace.com/u/FShimaya)\
**Replies:** 3\
**Last updated:** [May 19, 2025, 7:15pm UTC](https://community.dynatrace.com/t/javascript-action-to-write-result-of-dql-query-to-file-in-a-workflow-and-then-load-that-data-in-a-notebook-via-javascript-action/51647 "2025-05-19T19:15:52Z")

</div>

Is it possible to create a workflow where the result of a DQL query is passed to a Javascript action, and that action writes the result to a file somewhere (assume this is SaaS), and then a Notebook displays the data fro…

[Next page](https://community.dynatrace.com/tag/javascript/301.md?match_all_tags=true&page=1&tags%5B%5D=javascript)
