Hard-Coded Strings - Bad - Use sys_property
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2025 12:11 PM - edited 01-01-2025 12:15 PM
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
// gets the name of the instance running the script
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2025 07:40 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
