How to name column names
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-14-2020 05:52 PM
Hi All
When creating a new column, the column name is a combination of "scope" and "column label". What should I do if I use column names without the scope?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2020 06:59 PM
Hi Koya,
Yes that is by design; if you are in some scope it adds scope as prefix and then the column name;
it helps to differentiate fields with same name in different scopes
if you don't want the scope name then create that field in global scope; it would come with u_my_custom_test
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2020 09:12 PM
Hi Koya,
The system adds a namespace identifier to the front of application artifacts such as tables, scripts, and configuration records.
The identifier cannot be changed or removed from application artifacts to ensure that they are always associated to the proper application and that they have a unique name
Element | Requirements | Sample Value |
---|---|---|
The prefix characters for a scoped application. | Scoped applications always start with an x_ prefix. | x_ |
The instance customer prefix (glide.appcreator.company.code) | This string is two to five characters long. ServiceNow generates this prefix for each customer. The instance stores the prefix in the glide.appcreator.company.code system property. | acme |
The application ID | This string can be up to 40 characters long. Application developers set this ID when they create the application. The system uses the application name by default. | book_rooms |
If my answer helps you please mark as correct/helpful.
Regards,
Monali