View as Markdown
Microsoft Excel icon

Microsoft Excel ACTION

Create Workbook

Create a new, blank Excel workbook (.xlsx file) in OneDrive. The new workbook starts with a single default worksheet named Sheet1, ready for subsequent actions (e.g. Create Worksheet, Add Row). See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Microsoft Excel account once, then configure and run Create Workbook 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_excel-create-workbook",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    microsoft_excel: { authProvisionId: "apn_xxxxxxx" },
    folderId: "Folder ID",
    name: "Workbook Name",
  },
})

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.

Create Workbook inputs
Property Type Description
folderId Folder ID string
The folder to create the workbook in. Defaults to the root of your OneDrive when omitted. Use List Folder ID Options to find a folder ID (the value field). E.g. 01BYE5RZ6QN3ZWBTRWFNG2FOD7ONP4JLHU
Optional Dynamic
name Workbook Name string
The file name for the new workbook. The .xlsx extension is appended automatically if you don't include it. If a file with the same name already exists, a number is appended (e.g. Report 1.xlsx). E.g. Q3 Sales Report
Required

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_excel-create-workbook
Version
0.0.1
App
Microsoft Excel
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes