Created
February 24, 2022 22:01
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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