Skills

Add Data Source

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

Install

npx skills add microsoft/power-platform-skills --skill add-data-source -g -a claude-code -y
Category
Documents
Updated
4d ago
License
MIT
Context cost
Lightabout 905 tokens
Runs scripts
No, instructions only

What it does

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.

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 typeVerify 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
UnclearBoth 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:

Read the whole SKILL.md on GitHub

More in Documents