how to check if a string contains sub string

learnSN
Tera Expert

if i would say according to the recommendations using GlideRecord and alerts function in the client script is not best practices, so if it in case any client script contains the above(gliderecord and alerts function)records it should show the  violation on custom UI Page(named it as 'show violation in my update set') table, in that case we consider gliderecord is one sub string and alert function is another sub string.we call them from  'upate set best practice' table.

so my question is how to write a script(in script include)  to show them in violation table with their respective information.

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Naresh,

seems similar question to this which already has replies

how to find if a script contains sub string

Regards
Ankur

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