Build a condition to match a string that ends in a SPACE? (E.g Starts with "Telstra ")

howard8
Tera Contributor

Hi,

 

I have just notice that the condition builder in servicenow trims spaces off the end of strings that you enter and I don't know how to get around it.   see the 3 example records below:

 

Telstra Bigpond

Telstra Elite Gateway

TelStrat InternationalTelstra Elite Gateway

 

I want my condition builder to allow be to say anything that starts with "Telstra ", which would eliminate the 3rd record.   However when I enter this, it gets trimmed back to "Telstra" and therefore includes the last record.  

 

Does anyone know of a way around this? I tried "Telstra%20" but that didn't work.

 

Any help help would be appreciated.

 

Howard Elton

1 ACCEPTED SOLUTION

Try:


Name <startswith> javascript:"Telstra "


🙂


View solution in original post

6 REPLIES 6

Wow, what a good idea. Thanks Andrew. That works perfectly!



Thanks so much.



Howard


This definitely helped me find names with a trailing space as well...you use name <endswith> " "...which looks like this nameENDSWITHjavascript&colon;" "