default value not populating for life cycle stage and life cycle stage status attribute

Deepika54
Tera Contributor

Hello Team,

I have a requirement to populate the default value of life cycle stage attribute with operational and life cycle stage status with In use. I have updated the values in the dictionary of both the attributes in the parent configuration item table. 

But when i opening a new record to check it, it is giving some weird empty record . Kindly help

As both are reference fields, i have provided correct sysid values but still not working

Screenshot 2026-04-09 142942.pngScreenshot 2026-04-09 142854.pngScreenshot 2026-04-09 142755.png

2 REPLIES 2

Naveen20
ServiceNow Employee

Those sys_ids don't exist on your instance. The popup in your first screenshot confirms this — it's resolving to a record with a blank Name, meaning the sys_id points to a non-existent or empty record.

Sys_ids for Life Cycle Stage records vary between instances. You likely copied these from documentation or another instance.

Fix: Look up the correct sys_ids on your instance:

// Run in Scripts - Background
var gr = new GlideRecord('cmdb_life_cycle_stage');
gr.addQuery('name', 'Operational');
gr.query();
if (gr.next()) gs.info('Life Cycle Stage (Operational): ' + gr.getUniqueValue());

var gr2 = new GlideRecord('cmdb_life_cycle_stage_status');
gr2.addQuery('name', 'In use');
gr2.query();
if (gr2.next()) gs.info('Life Cycle Stage Status (In use): ' + gr2.getUniqueValue());

If no results come back, the CMDB Life Cycle Management data hasn't been loaded on your instance. In that case, check if the CMDB CI Lifecycle Management plugin (com.snc.cmdb.lifecycle) is active, and if so, verify that the cmdb_life_cycle_stage and cmdb_life_cycle_stage_status tables actually have records populated.

Once you get the correct sys_ids from your instance, update the dictionary default values with those, and it should work.

Hello @Naveen20 . Thank you for your response. I have given correct sysid's but data is not coming.

Screenshot 2026-04-09 145849.pngScreenshot 2026-04-09 145830.pngScreenshot 2026-04-09 145809.pngScreenshot 2026-04-09 145709.pngScreenshot 2026-04-09 145644.pngScreenshot 2026-04-09 145628.png