<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to escape &amp;quot;`&amp;quot; within &amp;quot;`&amp;quot;? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/How-to-escape-quot-quot-within-quot-quot/m-p/293133#M3038</link>
    <description>&lt;P&gt;The link to the original post is in here:&lt;BR /&gt;&lt;A href="https://community.dynatrace.com/t5/DQL/How-to-retrieve-data-from-another-tenant-and-display-in-chart/m-p/292254#M2979" target="_blank" rel="noopener"&gt;Solved: How to retrieve data from another tenant and display in chart through DQL - Dynatrace Community&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jan 2026 08:05:48 GMT</pubDate>
    <dc:creator>Hillman</dc:creator>
    <dc:date>2026-01-16T08:05:48Z</dc:date>
    <item>
      <title>How to escape "`" within "`"?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-escape-quot-quot-within-quot-quot/m-p/293132#M3037</link>
      <description>&lt;P&gt;The background of my question come from another post when I try to retrieve data from remote tenant and display in chart.&amp;nbsp; (I am not able to include the post link here as the forum keep throwing error and remove the link and the code block below)&lt;/P&gt;&lt;P&gt;A nice person has suggested a workaround for it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import { credentialVaultClient } from "@dynatrace-sdk/client-classic-environment-v2";

async function fetchRemoteDql(credentialId, url, query) {
  const { token } = await credentialVaultClient.getCredentialsDetails({ id: credentialId });

  const response = await fetch(url, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
      Accept: "application/json",
      Authorization: `Bearer ${token}`,
    },
    body: JSON.stringify({
      query,
      requestTimeoutMilliseconds: 60000,
      enablePreview: true,
    }),
  });

  if (!response.ok) throw new Error(`HTTP ${response.status} ${response.statusText}`);
  return (await response.json()).result;
}

export default async function () {
  const credentialId = "CREDENTIALS_VAULT-XXXXXXX"; // your vault entry on the *local* env
  const url =
    "https://{environmentid}.apps.dynatrace.com/platform/storage/query/v1/query:execute";
  const query = `
MY_DQL
  `.trim();

  return await fetchRemoteDql(credentialId, url, query);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, my DQL also contains "`" which cause the query to crash during execution.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;confluent_kafka_server_received_bytes = avg(confluent_kafka_server_received_bytes, filter: { in(`dt.entity.prometheus:confluent_kafka_cluster`, classicEntitySelector("type(prometheus:confluent_kafka_cluster),entityName.equals(\"cluster_name\")")) }), by: { `dt.entity.prometheus:confluent_kafka_cluster` }
| fieldsAdd entityName(`dt.entity.prometheus:confluent_kafka_cluster`)
| sort arrayAvg(confluent_kafka_server_received_bytes) desc&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to escape the "`" within "`"?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2026 08:06:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-escape-quot-quot-within-quot-quot/m-p/293132#M3037</guid>
      <dc:creator>Hillman</dc:creator>
      <dc:date>2026-01-16T08:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to escape "`" within "`"?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-escape-quot-quot-within-quot-quot/m-p/293133#M3038</link>
      <description>&lt;P&gt;The link to the original post is in here:&lt;BR /&gt;&lt;A href="https://community.dynatrace.com/t5/DQL/How-to-retrieve-data-from-another-tenant-and-display-in-chart/m-p/292254#M2979" target="_blank" rel="noopener"&gt;Solved: How to retrieve data from another tenant and display in chart through DQL - Dynatrace Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jan 2026 08:05:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-escape-quot-quot-within-quot-quot/m-p/293133#M3038</guid>
      <dc:creator>Hillman</dc:creator>
      <dc:date>2026-01-16T08:05:48Z</dc:date>
    </item>
  </channel>
</rss>

