Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Why Backslashes being Added to All over Discovery Pattern?

RK25
Giga Guru

Hello - I am running into a weird issue with pattern extension sections. When I save the pattern, all text in the pattern being wrapped in backslashes. Has anyone seen this before and possible root cause? Appreciate any insight.

RK25_0-1698107954923.png

 

1 ACCEPTED SOLUTION

RK25
Giga Guru

I initially deleted the extension section and created a new one but it did not work. Then I created a new extension section and imported it into the instance I am seeing the issue with, then the issue was gone.

View solution in original post

3 REPLIES 3

AnveshKumar M
Tera Sage
Tera Sage

Hi @RK25 

These back slashes are escape characters. For example in the value field you have inputted $""test"", ServiceNow will escape the second double quote to print it as is so it will become $"\"test\""

 

May I know the purpose of these double quotes you are using?

 

Please mark my answer helpful and accept as solution if it helped you 👍

Thanks,
Anvesh

RK25
Giga Guru

Thanks for the response. I added none of the backslashes, my original text was '$test'.

RK25
Giga Guru

I initially deleted the extension section and created a new one but it did not work. Then I created a new extension section and imported it into the instance I am seeing the issue with, then the issue was gone.