filter the configuration item based on the environment

Arun Priya
Tera Contributor

When the environment is chose as prod. It should not display list of configuration item were its evironment is development, others should be show.

to give in variable the filter it has predefined configuration which will be conflicted.
Please let me how to proceed with this.

 

14 REPLIES 14

Hi @Arun Priya ,

 

you want to keep the existing ref and extend it with environment filter?

 

if yes

add this at the end

replace PutyourEnvironmentFieldNameHERE with environment field backend name

+'^environment='+current.getValue('PutyourEnvironmentFieldNameHERE')

 

refer the screenshot

ChaitanyaILCR_0-1752743072687.png

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

 

Hi @Chaitanya ILCR 

The requirement is if the variable environment in the change request form is selected as prod. then it should not display the CI choices having the enironment as development

Ankur Bawiskar
Tera Patron
Tera Patron

@Arun Priya 

since that field is on task table, you should not touch the OOTB ref qualifier, but you should use Dictionary Override and give your own reference qualifier for your table.

AnkurBawiskar_0-1752742595492.png

AnkurBawiskar_1-1752742658915.png

 

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

If it has an existing dictionary override for that particular variable. Can we create new one. Will it not conflict?

 

@Ankur Bawiskar  It does work when I change in dictionary Override. But I need those changes when a variable called environment is selected as "production" it should not show the Ci which has development as the evironment in the CI

ArunPriya_0-1752760223733.png