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 97a5702 commit e3c4678Copy full SHA for e3c4678
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Transport/Invoke-AddTransportRule.ps1
@@ -22,7 +22,7 @@ Function Invoke-AddTransportRule {
22
try {
23
if ($Existing) {
24
Write-Host 'Found existing'
25
- $RequestParams | Add-Member -NotePropertyValue $RequestParams.name -NotePropertyName Identity
+ $RequestParams | Add-Member -NotePropertyValue $Existing.Identity -NotePropertyName Identity -Force
26
$null = New-ExoRequest -tenantid $tenantFilter -cmdlet 'Set-TransportRule' -cmdParams ($RequestParams | Select-Object -Property * -ExcludeProperty UseLegacyRegex) -useSystemMailbox $true
27
"Successfully set transport rule for $tenantFilter."
28
} else {
0 commit comments