Which attribute to use: Environment or Used for?

Ed Laar1
Kilo Guru

Hi community members,

On CI level there are 2 different attributes with more or less the same goal: Registration of the operational environment that the CI is used for. Examples: Production, Test, Acceptance etc.

There is the attribute Environment available from cmdb_ci with a choice list Development, Test and Production. For this attribute I can not find a description in the docs.

There is the attribute Used for available from cmdb_ci_service with a basically similar but extended choice list. This one is intended to designate how the service is used (following the docs).

As both attributes seems to cover the same functionality, what is the way to go? Keep them both and extend the choice list where needed? Is one of them to be considered as legacy?

 

Looking forward to your reactions,

 

Ed

7 REPLIES 7

emir
ServiceNow Employee
ServiceNow Employee

Do you mind showing me where this came from please?

Hi Emir,

 

This is the link towards the Used_for attribute on the Business Services table(s).

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/product/configuration-management/reference/r_BusinessServiceTables.html

So: Pre Orlando there was only the Used_for attribute. Starting from Orlando there is Used_for to be used with Business Services and Environment to be used with Hardware.

Do you also think this conclusion is right?

 

Ed

emir
ServiceNow Employee
ServiceNow Employee

The new UI for creating an Application Service uses the new field as seen here:

find_real_file.png