Replies: 1 comment 2 replies
-
CustomVariable is a property added by the module and not a table field. There is a lot of work, and relevant tables, involved in 'getting' that data. Some serious thought would need to be put into how to update it. I have some ideas, but will take some time. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to update a custom variable field for an RITM, specifically a Termination Date Field and I am having trouble passing the correct Syntax to the object for the Hashtable entry.
This data lives at $object.customvariable.termination_Date of the object $object
I've tried this:
get-servicenowrecord -id $servicenowritmnumber -new -IncludeCustomVariable | update-servicenowrecord -values @{'customvariable.termination_Date' = "$terminationeffectivedate"}
This part is obviously not right:
Any help on how to pass the hastable modification/entry is much appreciated.
Beta Was this translation helpful? Give feedback.
All reactions