Microsoft Outlook Calendar ACTION
Create Calendar Event
Create an event in the user's default calendar. Supports one-time and recurring events. See the documentation and recurring event example.
- Action
- Writes data
- OAuth
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Microsoft Outlook Calendar account once, then configure and run Create Calendar 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-create-calendar-event",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
microsoft_outlook_calendar: { authProvisionId: "apn_xxxxxxx" },
subject: "Subject",
contentType: "Content Type",
},
})
console.log(result)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-create-calendar-event",
"configured_props": {
"microsoft_outlook_calendar": { "authProvisionId": "apn_xxxxxxx" },
"subject": "Subject",
"contentType": "Content Type"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{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-create-calendar-event",
arguments: {
subject: "Subject",
contentType: "Content Type",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
subject Subject | string | Subject of the event Required |
contentType Content Type | string | Content type (default text) Optional |
content Content | string | Content Optional |
timeZone Time Zone | string | Time zone of the event in supported time zones, See the docs Required Dynamic |
start Start | string | Start date-time (yyyy-MM-ddThh:mm:ss) e.g. '2022-04-15T11:20:00' Required |
end End | string | End date-time (yyyy-MM-ddThh:mm:ss) e.g. '2022-04-15T13:30:00' Required |
attendees Attendees | string[] | Array of email addresses Required |
location Location | string | Location of the event Optional |
isOnlineMeeting Is Online Meeting | boolean | If it is online meeting or not Optional |
expand Expand | object | Additional event details. See object definition Optional |
recurrencePatternType Recurrence Pattern Type | string | How often the event repeats. Required when creating a recurring event. See recurrence pattern docs Optional |
recurrenceInterval Recurrence Interval | integer | Number of units between occurrences (e.g. every 2 weeks = 2). Required when recurrence pattern type is set. Optional |
recurrenceDaysOfWeek Recurrence Days of Week | string[] | Days of the week the event repeats (required for weekly, relativeMonthly, relativeYearly). E.g. monday, tuesday Optional |
recurrenceDayOfMonth Recurrence Day of Month | integer | Day of the month (1-31). Required for absoluteMonthly and absoluteYearly. Optional |
recurrenceMonth Recurrence Month | integer | Month (1-12). Required for absoluteYearly and relativeYearly. Optional |
recurrenceFirstDayOfWeek Recurrence First Day of Week | string | First day of the week for weekly recurrence. Required for weekly pattern. See recurrence pattern Optional |
recurrenceIndex Recurrence Week Index | string | Which instance in the month/year (e.g. second Tuesday). Optional for relativeMonthly and relativeYearly; defaults to first. Optional |
recurrenceRangeType Recurrence Range Type | string | How the recurrence ends. See recurrence range docs Optional |
recurrenceEndDate Recurrence End Date | string | End date for recurrence (yyyy-MM-dd). Required when recurrence range type is endDate. Optional |
recurrenceNumberOfOccurrences Recurrence Number of Occurrences | integer | Number of occurrences. Required when recurrence range type is numbered. 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-create-calendar-event
- Version
- 0.0.16
- App
- Microsoft Outlook Calendar
- Authentication
- OAuth
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗