Scripting to find the hard coded sys_id

Abc 26
Tera Expert

Hi Team,

I wanted to find all the script and places where ever sys_id is hardcoded in script.

Reason : 
After finding i wish to place it thorough the system properties.

 

Please help through scripting how can i find where ever sys_id i hardcoded.

 

Regards

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

check these links

Is there a way to find all the scripts where sysIDs are hardcoded

how to identify any sysid in script include table using instance scan

Regards
Ankur

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

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

check these links

Is there a way to find all the scripts where sysIDs are hardcoded

how to identify any sysid in script include table using instance scan

Regards
Ankur

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

@Ankur Bawiskar : I have already tried with the first link earlier before posting it to community but it provides out of the box scripts also where sys_id is hard-coded. Furthermore i am looking if there are any possibilites to run one script over all the table instead of running one by one on table.

Hi,

Did you check the 2nd link?

Regards
Ankur

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

@Abc 26 

Hope you are doing good.

Did my reply answer your question?

If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.

Regards
Ankur

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