Add a OneDrive for Business connector for file operations in Power Apps.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "add-onedrive" skill from askskill: 1. Download https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/code-apps/skills/add-onedrive/SKILL.md 2. Save it as ~/.claude/skills/add-onedrive/SKILL.md 3. Reload skills and tell me it's ready
Add the OneDrive for Business connector to my Power Apps code app and explain what file operations will be available afterward.
A result confirming the connector was added, plus a summary of available upload, download, listing, and file management actions.
Connect OneDrive for Business in my Power Apps code app so user-submitted files can be uploaded to a specified folder.
An enabled OneDrive upload capability that saves files to the target folder.
Add the OneDrive for Business connector to my app so it can list files in a folder and support download, rename, or delete actions.
A connector setup that enables folder browsing and common file management operations.
📋 Shared Instructions: shared-instructions.md - Cross-cutting concerns.
Check for memory-bank.md per shared-instructions.md.
First, find the connection ID (see connector-reference.md):
Run the /list-connections skill. Find the OneDrive for Business connection in the output. If none exists, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from power.config.json or a prior step): https://make.powerapps.com/environments/<environment-id>/connections → + New connection → search for the connector → Create.
npx power-apps add-data-source -a onedriveforbusiness -c <connection-id>
Ask the user what file operations they need (list files, upload, download, create folder, etc.).
Common operations:
// List files in a folder
const files = await OneDriveForBusinessService.ListFolder({
id: "root" // or folder ID
});
// Get file metadata
const metadata = await OneDriveForBusinessService.GetFileMetadata({
id: "file-id"
});
// Get file content
const content = await OneDriveForBusinessService.GetFileContent({
id: "file-id"
});
// Create file
await OneDriveForBusinessService.CreateFile({
folderPath: "/Documents",
name: "report.txt",
body: "File content here"
});
Key points:
ListFolder or ListRootFolderfolderPath for creating files by path, id for accessing existing filesUse Grep to find specific methods in src/generated/services/OneDriveForBusinessService.ts (generated files can be very large -- see connector-reference.md).
npm run build
Fix TypeScript errors before proceeding. Do NOT deploy yet.
Update memory-bank.md with: connector added, configured operations, build status.
Review and fix Power Pages security headers, CSP, CORS, cookies, and embedding settings.
Run an end-to-end Power Pages security review with a consolidated HTML report.
Test deployed Power Pages sites with browsing, crawling, and API verification.
Add a data source or connector to a Power Apps code app.
Add Azure DevOps to Power Apps for work items, bugs, pipelines, and API calls.
Set up Power Platform Pipelines for automated Power Pages deployments.
Add the Excel Online connector to read and write workbook data.
Connect SharePoint to Power Apps for lists, documents, and site integration.
Add the Office 365 Outlook connector for email and calendar features.
Add any Power Platform connector to a Power Apps code app.
Add a Teams connector to Power Apps for messaging and channel integration.
Connect to OneDrive to search, create, move, copy, and share files.