Filtering Calendar Accept/Decline Responses in Exchange Online

Filtering Calendar Accept/Decline Responses in Exchange Online

When Rocketship SmartMeetings sends calendar invites (ICS) on behalf of the helpdesk, end-user responses (Accept/Decline) are delivered back to the helpdesk—often the Autotask ticket. This can cause the ticket to incorrectly switch to “Customer Responded.”

To prevent this, use the provided Exchange Online PowerShell script to filter out meeting responses before they reach the helpdesk mailbox.

Configuration

Most customers will want to:
  1. DROP the Calendar Accepted response
  2. KEEP the Calendar Declined response

Setup

Always test in a non-production environment first.

Install and import the Exchange Online Management module:

Install-Module ExchangeOnlineManagement -Scope CurrentUser -Force
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline

Set your target mailbox:

$Target = 'user@domain.com'

Script Usage Examples

1. Delete Accept responses only

.\CalendarResponseFilter.ps1 -TargetAddress $Target -DropAccept -ActionType Delete -StopProcessing

Test:
Send a meeting invite from another account. Accept responses should not arrive; Decline responses should.

2. Delete Decline responses only

.\CalendarResponseFilter.ps1 -TargetAddress $Target -DropDecline -ActionType Delete

Test:
Decline responses should be dropped; Accept responses should arrive.

3. Delete both Accept and Decline responses

.\CalendarResponseFilter.ps1 -TargetAddress $Target -DropAccept -DropDecline -ActionType Delete -StopProcessing

Test:
Both Accept and Decline responses should be dropped.

4. Log-Only mode (no deletions)

.\CalendarResponseFilter.ps1 -TargetAddress $Target -DropAccept -DropDecline -ActionType LogOnly

Test:
Accept and Decline responses arrive normally but are logged for verification.

5. Update existing rule (idempotent behavior)

# Create Accept-only rule
.\CalendarResponseFilter.ps1 -TargetAddress $Target -DropAccept -ActionType Delete

# Update existing rule to handle both
.\CalendarResponseFilter.ps1 -TargetAddress $Target -DropAccept -DropDecline -ActionType Delete

Result:
The rule updates in place without duplication.

6. Remove the rule (revert to normal)

.\CalendarResponseFilter.ps1 -TargetAddress $Target -Remove

Recommended Usage

We recommend you only drop Calendar Invite Accepted messages. These are the ones that provide no value generally and will flag a ticket for review needlessly.
.\CalendarResponseFilter.ps1 -TargetAddress $Target -DropAccept -ActionType Delete -StopProcessing