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 {
31
31
Status = $_.status
32
32
}
33
33
}
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
36
36
$CIPPAlert = @ {
37
37
Type = ' email'
38
38
Title = $GenerateEmail.title
@@ -52,7 +52,7 @@ function Push-CippDriftManagement {
52
52
Type = ' webhook'
53
53
Title = $GenerateEmail.title
54
54
JSONContent = $WebhookData
55
- TenantFilter = $Item.tenant
55
+ TenantFilter = $Item.Tenant
56
56
}
57
57
Write-Host ' Sending Webhook Content'
58
58
Send-CIPPAlert @CippAlert - altWebhook $webhook
@@ -61,7 +61,7 @@ function Push-CippDriftManagement {
61
61
Type = ' psa'
62
62
Title = $GenerateEmail.title
63
63
HTMLContent = $GenerateEmail.htmlcontent
64
- TenantFilter = $TenantFilter
64
+ TenantFilter = $Item .Tenant
65
65
}
66
66
Send-CIPPAlert @CIPPAlert
67
67
return $true
You can’t perform that action at this time.
0 commit comments