# Add Data Source

Guide the user to add a data source, connection, or API connector to a Canvas App via...

- Repository: https://github.com/microsoft/power-platform-skills (1098 stars)
- Category: Documents
- License: MIT
- Last updated: 2026-10-31
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add microsoft/power-platform-skills --skill add-data-source -g -a claude-code -y`
Codex: `npx skills add microsoft/power-platform-skills --skill add-data-source -g -a codex -y`
Cursor: `npx skills add microsoft/power-platform-skills --skill add-data-source -g -a cursor -y`
Gemini CLI: `npx skills add microsoft/power-platform-skills --skill add-data-source -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add microsoft/power-platform-skills`

## Description

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 existing data sources, call list_data_sources or list_apis directly instead.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

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:
  1. Open the **Data** panel in the left sidebar
  2. Click **Add data**
  3. Search for the data source or connector they want (e.g., "SharePoint", "Dataverse", "SQL Server", "Office 365 Users")
  4. 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:

The rest: https://github.com/microsoft/power-platform-skills/blob/HEAD/plugins/canvas-apps/skills/add-data-source/SKILL.md
