Skip to content

Commit cc37f24

Browse files
committed
backwards compatibility
1 parent ec875a7 commit cc37f24

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Email-Exchange/Administration/Invoke-ExecSetOoO.ps1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using namespace System.Net
22

3-
Function Invoke-ExecSetOoO {
3+
function Invoke-ExecSetOoO {
44
<#
55
.FUNCTIONALITY
66
Entrypoint
@@ -17,8 +17,7 @@ Function Invoke-ExecSetOoO {
1717

1818
$Username = $Request.Body.userId
1919
$TenantFilter = $Request.Body.tenantFilter
20-
$State = $Request.Body.AutoReplyState.value
21-
20+
$State = $Request.Body.AutoReplyState.value ?? $Request.Body.AutoReplyState
2221
$SplatParams = @{
2322
userid = $Username
2423
tenantFilter = $TenantFilter

0 commit comments

Comments
 (0)