-
Is there any support for updating custom fields? There is the example of creating a new incident with custom fields but copying that syntax I still get the errors: Update-ServiceNowRecord -Values @AssetData and Update-ServiceNowRecord @AssetData both give attempting to do it inline "Update-ServiceNowRecord : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The setting of $AssetData wasn't included in your code, but assuming it's a hashtable....
$AssetData = @{
'SysId' = '123456789fffffsdfsdfsf'
'Values' = @{
'field-to-update' = 'new-value'
}
} |
Beta Was this translation helpful? Give feedback.
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