File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Modules/CIPPCore/Public/Entrypoints/Activity Triggers/Standards Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,8 @@ function Push-CippDriftManagement {
3131 Status = $_.status
3232 }
3333 }
34- $Data | Add-Member - MemberType NoteProperty - Name ' CIPPAction ' - Value @ ( ' driftManagement ' )
35- $GenerateEmail = New-CIPPAlertTemplate - format ' html' - data $Data - CIPPURL $CIPPURL - Tenant $Item.tenant - InputObject ' driftStandard' - AuditLogLink $drift.standardId
34+
35+ $GenerateEmail = New-CIPPAlertTemplate - format ' html' - data $Data - CIPPURL $CIPPURL - Tenant $Item.Tenant - InputObject ' driftStandard' - AuditLogLink $drift.standardId
3636 $CIPPAlert = @ {
3737 Type = ' email'
3838 Title = $GenerateEmail.title
@@ -52,7 +52,7 @@ function Push-CippDriftManagement {
5252 Type = ' webhook'
5353 Title = $GenerateEmail.title
5454 JSONContent = $WebhookData
55- TenantFilter = $Item.tenant
55+ TenantFilter = $Item.Tenant
5656 }
5757 Write-Host ' Sending Webhook Content'
5858 Send-CIPPAlert @CippAlert - altWebhook $webhook
@@ -61,7 +61,7 @@ function Push-CippDriftManagement {
6161 Type = ' psa'
6262 Title = $GenerateEmail.title
6363 HTMLContent = $GenerateEmail.htmlcontent
64- TenantFilter = $TenantFilter
64+ TenantFilter = $Item .Tenant
6565 }
6666 Send-CIPPAlert @CIPPAlert
6767 return $true
You can’t perform that action at this time.
0 commit comments