Does not end with operator

dedeepyatirugu
Tera Contributor

Hi,

We have a requirement for filtering out the location names that does not end with some key words like CA,JP etc.

Using it mainly in the filter condition of a report. Please let me know your view how can we achieve it.

Regards,

Dedeepya

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,



You can have your own custom filter. such type of filter is not present in the system out of the box i.e. does not end with.



https://docs.servicenow.com/bundle/helsinki-servicenow-platform/page/use/using-lists/task/t_EditingS...



Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.


Thanks


Ankur


Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Raju Koyagura
Tera Guru

Use Is operator and call script include something like below and write complete logic in script include using regex to get the locations doesn't end with xxx..etc.


Name is javascript: new ValidateLocation().notEndWith()


find_real_file.png


Thanks for the quick reply Raju. I thought about the same but not sure how to get the names that does not end with particular key words.


Can you please post here if you know any of such Regex methods.