Skip to content

Commit 57a38c7

Browse files
committed
Fix partner webhook standards setting
1 parent 3d925f4 commit 57a38c7

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Core/Invoke-ExecPartnerWebhook.ps1

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,13 @@ function Invoke-ExecPartnerWebhook {
4242
}
4343
$Results = New-CIPPGraphSubscription @Webhook
4444

45-
if ($Request.Body.standardsExcludeAllTenants -eq $true) {
46-
$ConfigTable = Get-CIPPTable -TableName Config
47-
$PartnerWebhookOnboarding = [PSCustomObject]@{
48-
PartitionKey = 'Config'
49-
RowKey = 'PartnerWebhookOnboarding'
50-
StandardsExcludeAllTenants = $true
51-
}
52-
Add-CIPPAzDataTableEntity @ConfigTable -Entity $PartnerWebhookOnboarding -Force | Out-Null
45+
$ConfigTable = Get-CIPPTable -TableName Config
46+
$PartnerWebhookOnboarding = [PSCustomObject]@{
47+
PartitionKey = 'Config'
48+
RowKey = 'PartnerWebhookOnboarding'
49+
StandardsExcludeAllTenants = $Request.Body.standardsExcludeAllTenants
5350
}
51+
Add-CIPPAzDataTableEntity @ConfigTable -Entity $PartnerWebhookOnboarding -Force | Out-Null
5452
}
5553
'SendTest' {
5654
$Results = New-GraphPOSTRequest -uri 'https://api.partnercenter.microsoft.com/webhooks/v1/registration/validationEvents' -tenantid $env:TenantID -NoAuthCheck $true -scope 'https://api.partnercenter.microsoft.com/.default'

0 commit comments

Comments
 (0)