Skip to content

Update-ServiceNowRecord Custom fields #163

Answered by gdbarron
mgray40 asked this question in Q&A
Discussion options

You must be logged in to vote

The setting of $AssetData wasn't included in your code, but assuming it's a hashtable....

Update-ServiceNowRecord -Values @AssetData, @ should be a $

Update-ServiceNowRecord @AssetData, $AssetData should be of the format

$AssetData = @{
  'SysId' = '123456789fffffsdfsdfsf'
  'Values' = @{
    'field-to-update' = 'new-value'
  }
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mgray40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants