We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85937d8 commit c09e55eCopy full SHA for c09e55e
1 file changed
Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Domain Analyser/Push-DomainAnalyserDomain.ps1
@@ -310,7 +310,13 @@ function Push-DomainAnalyserDomain {
310
$Result.ScorePercentage = [int](($Result.Score / $Result.MaximumScore) * 100)
311
$Result.ScoreExplanation = ($ScoreExplanation) -join ', '
312
313
- $DomainObject.DomainAnalyser = (ConvertTo-Json -InputObject $Result -Depth 5 -Compress).ToString()
+ $Json = (ConvertTo-Json -InputObject $Result -Depth 5 -Compress).ToString()
314
+
315
+ if ($DomainObject.PSObject.Properties.Name -notcontains 'DomainAnalyser') {
316
+ $DomainObject | Add-Member -MemberType NoteProperty -Name DomainAnalyser -Value $Json
317
+ } else {
318
+ $DomainObject.DomainAnalyser = $Json
319
+ }
320
321
try {
322
$DomainTable.Entity = $DomainObject
0 commit comments