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

environment is a new field since Orlando CSDM release. That will be the field NOW will use going forward to indicate Environment.

used_for is pre orlando

 

Many thanks,

Did you already found a doc on this 'environment' attribute?

 

Cheers,

 

Ed

emir
ServiceNow Employee
ServiceNow Employee

Doc

Explanation by Scott Lemm (CSDM Author)

Hi Emir,

 

An other statement:

Environment is for CI's and Used_for is to be used with Services. Do you know about this?

 

Ed