Install Add Data Source
Pick your agent. Every command is ready to paste.
npx skills add microsoft/power-platform-skills --skill add-data-sourceThe open skills CLI detects your agents (Claude Code, Cursor, Codex and 70+ more) and installs to the right folder. Add -g to install globally.
01
Install it
Run the command above, or upload the folder in Claude.
02
Ask naturally
Describe the task. Your agent loads add-data-source when the request matches its description.
03
Name it if needed
If it does not trigger, say “use the add-data-source skill”. In Codex, type $add-data-source.
Data sources, connections, and API connectors cannot be added by the coding agent — they must be added through the Power Apps Studio interface. This skill informs the user, guides them to add the connection in their Studio session, verifies it is available via the MCP server, and then continues with any pending work.
Phase 0 — Identify the Connection Type
From the user's request, determine what they want to add and how to verify it:
| Request type | Verify with |
|---|---|
| Data source (SharePoint list, Dataverse table, SQL table, Excel file, OneDrive, etc.) | list_data_sources |
| API / connector (Office 365 Users, Teams, custom connector, etc.) | list_apis |
| Unclear | Both list_data_sources and list_apis |
Note what the user is trying to add so you can look for it by name in Phase 3.
Phase 1 — Inform the User
Explain that this step requires action in their Studio session. Tell the user:
- The coding agent cannot add data sources or connections programmatically — this must be done directly in Power Apps Studio.
- To add the connection, follow these steps in their open Studio session:
- Open the Data panel in the left sidebar
- Click Add data
- Search for the data source or connector they want (e.g., "SharePoint", "Dataverse", "SQL Server", "Office 365 Users")
- Follow the authentication prompts and select the specific table, list, file, or dataset
- Once added, the connection will be available to the MCP server and you can continue.
Phase 2 — Wait for Confirmation
Use AskUserQuestion to pause until the user has completed the steps in Studio:
"Please add the data source or connection in your Power Apps Studio session. Reply here when it's ready and I'll verify the connection before continuing."
Do not proceed until the user confirms they have added it.
Phase 3 — Verify the Connection
Once the user confirms, call the appropriate MCP tools to check that the connection is now available:
- If the request was for a data source: call
list_data_sources - If the request was for an API / connector: call
list_apis - If the type was unclear: call both in parallel
Scan the results for the connection the user added:
Found — Confirm to the user that the data source or connection is now visible to the agent. Include the exact name as returned by the MCP tool (this is how it must be referenced in Power Fx formulas). If it is a data source, call get_data_source_schema to retrieve its column names and types, and include the schema summary in your response so it is ready for use in edits. Similarly, for APIs/connectors, call describe_api to retrieve the available endpoints and their parameters, and include the schema summary in your response.
Not found — Inform the user that the connection is not yet visible. Ask them to:
- Confirm they completed the Studio steps and the connection appears in the Data panel there.
- Check that their Studio session is still active (the MCP server must be connected to a live coauthoring session).
- Let you know when ready to try again.
Use AskUserQuestion to wait for their follow-up, then re-run Phase 3.
Phase 4 — Continue
After the connection is confirmed:
- If the user had a pending task (e.g., "add SharePoint as a data source, then build a gallery"), continue with that work now using the verified connection name and schema.
- If adding the connection was the only request, summarize what was confirmed (connection name, type, and schema if applicable) and suggest a natural next step (e.g., building a screen or gallery that uses the new data).
Tips for Add Data Source
- • Start a fresh session after installing so your agent picks up the new skill.
- • It is part of a pack with 24 skills. Install only the ones you need with --skill to keep triggers precise.
- • If two skills overlap, mention the one you want by name.
Questions about Add Data Source
What does the Add Data Source skill do?
Guide the user to add a data source, connection, or API connector to a Canvas App via Power Apps Studio, then verify and continue. USE WHEN the user asks to add a data source, add a connection, add an API, add a connector, connect to SharePoint / Dataverse / SQL / Excel / OneDrive / Teams / Office 365, or any similar request to make new data available to the app. DO NOT USE WHEN the user is asking to list or describe
How do I install Add Data Source?
Run "npx skills add microsoft/power-platform-skills --skill add-data-source" in your project. The skills CLI installs it for Claude Code, Cursor, Codex and 70+ other agents. In Claude on the web, upload the skill folder as a ZIP under Customize > Skills.
Does Add Data Source work in Cursor and Codex?
Yes. Add Data Source uses the open SKILL.md format, so it works in Claude Code, Claude, Cursor, OpenAI Codex, Gemini CLI, GitHub Copilot and other agents that support agent skills.
Is Add Data Source free?
Add Data Source is open source on GitHub under the MIT license. It is free to install; check the license before commercial use.
Who made Add Data Source?
Add Data Source is published by Microsoft in the microsoft/power-platform-skills repository, together with 23 other skills.
