<?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 add a second condition when using replaceString() function? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/How-to-add-a-second-condition-when-using-replaceString-function/m-p/255088#M1182</link>
    <description>&lt;P&gt;There is an example in the docs , is this what you are after ?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/string-functions#replaceString" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/string-functions#replaceString&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data record(content = "DQL is awesome!"),
     record(content = "Dynatrace Query Language"),
     record(content = "abcabca")
| fieldsAdd replaceString(content, "awesome", "simple"),
            replaceString(content, "abca", "xyz")&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 06 Sep 2024 01:57:32 GMT</pubDate>
    <dc:creator>p_devulapalli</dc:creator>
    <dc:date>2024-09-06T01:57:32Z</dc:date>
    <item>
      <title>How to add a second condition when using replaceString() function?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-add-a-second-condition-when-using-replaceString-function/m-p/255012#M1178</link>
      <description>&lt;P&gt;Hi I am currently using the replaceString() function to replace some values in a DQL query. How do I specify a second piece of text to be filtered?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 11:53:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-add-a-second-condition-when-using-replaceString-function/m-p/255012#M1178</guid>
      <dc:creator>badgerfifteen</dc:creator>
      <dc:date>2024-09-05T11:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a second condition when using replaceString() function?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-add-a-second-condition-when-using-replaceString-function/m-p/255088#M1182</link>
      <description>&lt;P&gt;There is an example in the docs , is this what you are after ?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/string-functions#replaceString" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/string-functions#replaceString&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;data record(content = "DQL is awesome!"),
     record(content = "Dynatrace Query Language"),
     record(content = "abcabca")
| fieldsAdd replaceString(content, "awesome", "simple"),
            replaceString(content, "abca", "xyz")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 06 Sep 2024 01:57:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-add-a-second-condition-when-using-replaceString-function/m-p/255088#M1182</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2024-09-06T01:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a second condition when using replaceString() function?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-add-a-second-condition-when-using-replaceString-function/m-p/276974#M2054</link>
      <description>&lt;P&gt;Did you figure out the solution for this ??&lt;/P&gt;&lt;P&gt;I have the similar requirement with the&amp;nbsp;&lt;SPAN&gt;expression(where substrings should be replaced) is having two different&amp;nbsp;substrings.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;For Ex: Category field has two results either A or B and I want to replace 'A' with 'XML' and 'B' with 'TEXT'. I used below command and it worked for A. How do I replace the&amp;nbsp; the another string B in the same&amp;nbsp;Category field(without adding new&amp;nbsp;fieldsAdd command.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;fieldsAdd replaceString(Category, "A", "XML")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 13 May 2025 10:40:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-add-a-second-condition-when-using-replaceString-function/m-p/276974#M2054</guid>
      <dc:creator>Kaladhar</dc:creator>
      <dc:date>2025-05-13T10:40:31Z</dc:date>
    </item>
  </channel>
</rss>

