How do I identify all he places where a client script is being used?

Saquib Mohammed
Mega Guru

Hi

I am working on some health scan findings and some of the findings recommendation is to remove the use of DOM in client scripts. The finding identifies the client scripts that need to be worked upon.

Before I make any change to the script, I want to identify where all any given client script is being used in my instance. Is there a way to determine that? Thank you.

2 ACCEPTED SOLUTIONS

Chaitanya ILCR
Mega Patron

Hi @Saquib Mohammed ,

The client scripts are not library scripts and the client script focus one particular business requirement. you just to find out what is being done in the client script and can you avoid DOM and achieve it without it.

they are just focused on problem statement you don't have to worry about where else it's being used because it'll only be used only in one place

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

View solution in original post

Ankur Bawiskar
Tera Patron
Tera Patron

@Saquib Mohammed 

the client scripts pointed out by health scan will be either on some table in the instance or it would be catalog client scripts

No need to check where it's being used.

client scripts are not reusable things.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

2 REPLIES 2

Chaitanya ILCR
Mega Patron

Hi @Saquib Mohammed ,

The client scripts are not library scripts and the client script focus one particular business requirement. you just to find out what is being done in the client script and can you avoid DOM and achieve it without it.

they are just focused on problem statement you don't have to worry about where else it's being used because it'll only be used only in one place

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Ankur Bawiskar
Tera Patron
Tera Patron

@Saquib Mohammed 

the client scripts pointed out by health scan will be either on some table in the instance or it would be catalog client scripts

No need to check where it's being used.

client scripts are not reusable things.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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