# Tentatively Accept Event — Microsoft Outlook Calendar

> Tentatively accept 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…

- Key: `microsoft_outlook_calendar-tentatively-accept-event`
- Type: Action (Write)
- Version: 0.0.2
- App: Microsoft Outlook Calendar (`microsoft_outlook_calendar`) — https://pipedream.com/apps/microsoft-outlook-calendar.md
- This page (HTML): https://pipedream.com/apps/microsoft-outlook-calendar/actions/tentatively-accept-event
- Hints: open-world
- Source: https://github.com/PipedreamHQ/pipedream/blob/master/components/microsoft_outlook_calendar/actions/tentatively-accept-event/tentatively-accept-event.mjs

## Description

Tentatively accept 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](https://learn.microsoft.com/en-us/graph/api/event-tentativelyaccept?view=graph-rest-1.0&tabs=http)

## Props

| Prop | Type | Required | Description |
|---|---|---|---|
| `eventId` | `string` | Yes | The event ID Options are loaded from the connected account. |
| `comment` | `string` | No | An optional message to include with the RSVP response sent to the organizer. |
| `sendResponse` | `boolean` | No | Whether to send an email response to the organizer (default true). |
| `proposedNewTime` | `string` | No | 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. |

## Run it

**MCP**

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
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 accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "microsoft_outlook_calendar",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
  name: "microsoft_outlook_calendar-tentatively-accept-event",
  arguments: {
    eventId: "Event ID",
    comment: "Comment",
  },
})
```

**TypeScript**

```ts
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-tentatively-accept-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)
```

**cURL**

```bash
curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
  -H "Content-Type: application/json" \
  -H "X-PD-Environment: production" \
  -H "Authorization: Bearer {access_token}" \
  -d '{
    "external_user_id": "{external_user_id}",
    "id": "microsoft_outlook_calendar-tentatively-accept-event",
    "configured_props": {
      "microsoft_outlook_calendar": { "authProvisionId": "apn_xxxxxxx" },
      "eventId": "Event ID",
      "comment": "Comment"
    }
  }'
```

---

- App: https://pipedream.com/apps/microsoft-outlook-calendar.md · All apps: https://pipedream.com/apps
