View as Markdown
Microsoft Outlook Calendar icon

Microsoft Outlook Calendar ACTION

Decline Event

Decline a calendar event invitation and optionally propose an alternate time. Use List Events or Get Event to find the event ID. To propose a new time, pass proposedNewTime as a JSON string with start and end objects (each with dateTime in ISO 8601 format and timeZone as a Windows timezone name, e.g. "Pacific Standard Time"). Alternate-time proposals are only valid when the event has allowNewTimeProposals: true and sendResponse is true. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Microsoft Outlook Calendar account once, then configure and run Decline Event from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "microsoft_outlook_calendar-decline-event",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    microsoft_outlook_calendar: { authProvisionId: "apn_xxxxxxx" },
    eventId: "Event ID",
    comment: "Comment",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Decline Event inputs
Property Type Description
eventId Event ID string
The event ID
Required Dynamic
comment Comment string
An optional message to include with the RSVP response sent to the organizer.
Optional
sendResponse Send Response to Organizer boolean
Whether to send an email response to the organizer (default true).
Optional
proposedNewTime Proposed New Time string
Optional alternate time to propose. JSON string with start and end objects, each having dateTime (ISO 8601) and timeZone (Windows timezone name). Example: {"start":{"dateTime":"2024-03-15T14:00:00","timeZone":"Pacific Standard Time"},"end":{"dateTime":"2024-03-15T15:00:00","timeZone":"Pacific Standard Time"}}. Only valid when the event allows new time proposals and sendResponse is true.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
microsoft_outlook_calendar-decline-event
Version
0.0.2
App
Microsoft Outlook Calendar
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes