From code-apps-preview
Adds OneDrive for Business connector to Power Apps code apps for file listing, uploading, downloading, and management.
npx claudepluginhub microsoft/power-platform-skills --plugin code-apps-previewThis skill is limited to using the following tools:
**๐ Shared Instructions: [shared-instructions.md](${CLAUDE_PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns.
Adds Excel Online (Business) connector to Power Apps code apps via CLI for reading/writing Excel tables from OneDrive or SharePoint.
Automates OneDrive file search, uploads/downloads, sharing, permissions, and folder ops via Composio toolkit and Rube MCP tools. Requires active connection and tool schema search first.
Automates OneDrive file management including search, uploads, downloads, sharing, permissions, and folder operations via Rube MCP (Composio) tools.
Share bugs, ideas, or general feedback.
๐ 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.
pwsh -NoProfile -Command "pac code 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.