Hard-Coded Strings - Bad - Use sys_property

Bill Bonnett SN
ServiceNow Employee
ServiceNow Employee

Hard Coded solution: Since hard coded IDs are a no-no in Health Assessment scans. Instead, use the sys_property  glide.appcreator.company.friendly_name or use instance_name

 

var instName = gs.getProperty('glide.appcreator.company.friendly_name');
// gets the name of the instance running the script

 

BillBonnettSN_0-1735762237420.png

 

 

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@Bill Bonnett SN 

so what's your question?

Is this an information which you wish to share with community?

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