cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to add a second condition when using replaceString() function?

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?

1 REPLY 1

There is an example in the docs , is this what you are after ?

https://docs.dynatrace.com/docs/shortlink/string-functions#replaceString

data record(content = "DQL is awesome!"),
     record(content = "Dynatrace Query Language"),
     record(content = "abcabca")
| fieldsAdd replaceString(content, "awesome", "simple"),
            replaceString(content, "abca", "xyz")
Phani Devulapalli

Featured Posts