
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2021 06:22 AM
Hi -
Does anyone know why on Application Service (and other Service tables), we have both Used for and Environment to model the environment. They both seem to represent the same thing - or am I missing something?
Thanks
Solved! Go to Solution.
- Labels:
-
Multiple Versions
- 5,083 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2021 06:51 AM
A bit of history here:
1. used_for is a legacy attribute in ServiceNow CMDB and not present on all CMDB classes
2. The used_for label is quite possibly the worst label in all of ServiceNow CMDB. The industry refers to this data as "Environment". Due to the poor name, many customers didn't know this attribute existed. The #1 custom created attribute in ServiceNow CMDB is "Environment".
3. The oob Environment attribute is our effort to right a wrong by providing an object that is available on all CMDB classes and labeled appropriately as "Environment".
Eventually, after customers have migrated from used_for to environment, we will deprecate the legacy used_for object. We recommend you utilize "Environment" in your operations.
Hope this helps in understanding why both objects exist.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2021 06:41 AM
Hello,
You are right both are same but Used for is for cmdb_ci_service table but Environmnet is for cmdb_ci table that is the parent table thats why it extends in all child table.
Regards,
Alok Gupta

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2021 06:45 AM
Oh yes, good catch! Still does not make much sense to have both, IMHO. Probably some legacy design I suppose, as Environment could have been just fine for cmb_ci_service.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2021 06:57 AM
Yes definetly but sometimes customers need Used for in service table. Thats why they have provied used for only for cmdb_ci_service table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-09-2021 07:01 AM
There is no longer any need for used_for. The used_for attribute exists on the Service table, and others, because that was how it was originally designed. The used_for attribute was a flawed design which has since been replaced with the more commonly available "environment" attribute. We recommend using "environment" as it is consistently available on all classes and properly labeled.