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?
There is an example in the docs , is this what you are after ?
data record(content = "DQL is awesome!"),
record(content = "Dynatrace Query Language"),
record(content = "abcabca")
| fieldsAdd replaceString(content, "awesome", "simple"),
replaceString(content, "abca", "xyz")
Did you figure out the solution for this ??
I have the similar requirement with the expression(where substrings should be replaced) is having two different substrings.
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 the another string B in the same Category field(without adding new fieldsAdd command.)
fieldsAdd replaceString(Category, âAâ, âXMLâ)
Thanks,