Skip to content

Commit 4ccb079

Browse files
authored
pscustomobject for custom vars (#206)
1 parent cd20aad commit 4ccb079

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ServiceNow/Public/Get-ServiceNowRecord.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ function Get-ServiceNowRecord {
335335
}
336336
foreach ($var in $customVarsOut) {
337337
$record.CustomVariable | Add-Member @{
338-
$var.'sc_item_option.item_option_new.name' = @{
338+
$var.'sc_item_option.item_option_new.name' = [pscustomobject] @{
339339
Value = $var.'sc_item_option.value'
340340
DisplayName = $var.'sc_item_option.item_option_new.question_text'
341341
Type = $var.'sc_item_option.item_option_new.type'

0 commit comments

Comments
 (0)