Skip to content

Instantly share code, notes, and snippets.

@cmcdevitt
Created February 24, 2022 22:01
Show Gist options
  • Select an option

  • Save cmcdevitt/01a3bb141b730797e329161da61b0b6d to your computer and use it in GitHub Desktop.

Select an option

Save cmcdevitt/01a3bb141b730797e329161da61b0b6d to your computer and use it in GitHub Desktop.
Set Life Cycle Stage and Life Cycle Stage Status for End of Life / Retired
var target = '2dfd7c8437201000deeabfc8bcbe5d56';//ci sys_id
var ci = GlideRecord('cmdb_ci');
ci.get(target);
ci.setValue('life_cycle_stage', 'End of Life');
ci.setValue('life_cycle_stage_status', 'Retired');
ci.update();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment