add-data-source

A guide for adding a data source, connection, or API connector to a Power Apps Canvas App. A data source is where the app gets information, such as SharePoint, Dataverse, SQL, Excel, or OneDrive.

In plain words
What is it for?
Use it when an app needs a table, file, service, or connector, including SharePoint, Dataverse, SQL, Excel, OneDrive, Teams, Office 365, or a custom API.
Why use it?
The coding agent cannot add these connections itself, so the user must add them in Power Apps Studio. The guide explains where to do that and then verifies the connection before continuing.

Skill for Claude CodeCodex

Part of the canvas-apps plugin — 4 skills, 2 agents, 1 hook, 1 MCP server shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/microsoft/power-platform-skills/add-data-source
Any agent
npx skills add microsoft/power-platform-skills --skill add-data-source
Clone the repo
git clone --depth 1 https://github.com/microsoft/power-platform-skills

Made for: Claude Code, Codex.

Or install canvas-apps, the plugin that ships this one along with the rest of its 4 skills, 2 agents, 1 hook, 1 MCP server.

Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,006 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00116 $0.01006
Opus 5 $0.00058 $0.00503
Sonnet 5 $0.00023 $0.00201
Haiku 4.5 $0.00012 $0.00101

Measured 3d ago against content hash d2991a6e916d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

add-data-source scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/canvas-apps/skills/add-data-source/SKILL.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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:

  • 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

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 69 lines · 116 tokens per session scan A d2991a6e916d

Subscribe to this mod's changes

add-data-source is a skill published in the GitHub repository microsoft/power-platform-skills (784 stars, last pushed 3d ago), licensed MIT. It adds 116 tokens to every session and 1,006 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories