We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba19c85 commit 8869f17Copy full SHA for 8869f17
ServiceNow/Public/Get-ServiceNowRecord.ps1
@@ -372,10 +372,11 @@ function Get-ServiceNowRecord {
372
$newVar | Add-Member @{'ReferenceID' = $var.'sc_item_option.value' }
373
# issue 234. ID might not be sysid or number for reference...odd
374
$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
+ if ( $refValue ) {
+ $newVar.Value = $refValue
+ }
379
+
380
}
381
382
if ( $var.'sc_item_option.item_option_new.name' ) {
0 commit comments