Skip to content

Commit 8869f17

Browse files
CATgwalkergdbarron
andauthored
Update ServiceNow/Public/Get-ServiceNowRecord.ps1
Co-authored-by: Greg Brownstein <[email protected]>
1 parent ba19c85 commit 8869f17

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ServiceNow/Public/Get-ServiceNowRecord.ps1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -372,10 +372,11 @@ function Get-ServiceNowRecord {
372372
$newVar | Add-Member @{'ReferenceID' = $var.'sc_item_option.value' }
373373
# issue 234. ID might not be sysid or number for reference...odd
374374
$refValue = Get-ServiceNowRecord -Table $var.'sc_item_option.item_option_new.reference' -ID $var.'sc_item_option.value' -Property name -AsValue -ServiceNowSession $ServiceNowSession -ErrorAction SilentlyContinue
375-
}
376-
if ( $refValue ) {
377-
$newVar.Value = $refValue
378-
}
375+
if ( $refValue ) {
376+
$newVar.Value = $refValue
377+
}
378+
}
379+
379380
}
380381

381382
if ( $var.'sc_item_option.item_option_new.name' ) {

0 commit comments

Comments
 (0)