list-connections · microsoft, code-apps — Claude Code skill: get Power Platform connection IDs
list-connections — a Claude Code skill that retrieves all Power Platform connections in your current environment. Pull the connection ID before adding a data source connector to your app.
MIT ★ 1,167 updated 2026-10-29
/plugin marketplace add microsoft/power-platform-skills
/plugin install code-apps-preview@power-platform-skillsWhat list-connections does
Runs the Power Apps CLI command pa connection list and displays available connections with their IDs—each one can then be used in -c <connection-id> when binding a data source. If a needed connector is missing, the skill provides a direct link to create it in Power Apps, complete the sign-in flow, and return to retrieve the new ID.
Most of the time it runs instantly, but if the CLI is not authenticated, a browser window opens for login; retry the command after signing in.
What it helps with
- retrieve a connection ID before adding a data source
- list all connectors already created in the environment
- verify which connection to use for binding
Example prompts for the agent
- Show me all available Power Platform connections
- What's the ID of the SharePoint connection?
- List connections in the current environment
How to install list-connections
1Plugin marketplace
/plugin marketplace add microsoft/power-platform-skills/plugin install code-apps-preview@power-platform-skillsThis installs the whole code-apps-preview plugin with all its skills
2Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill list-connections -a claude-code3Manually: put the files in place
~/.claude/skills/list-connections/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/list-connections/
1Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill list-connections -a codex2Manually: put the files in place
.agents/skills/list-connections/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill list-connections -a cursor2Manually: put the files in place
.cursor/skills/list-connections/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install microsoft/power-platform-skills plugins/code-apps/skills/list-connections2Manually: put the files in place
.github/skills/list-connections/SKILL.md1Skills CLI (Vercel)
npx skills add microsoft/power-platform-skills --skill list-connections -a gemini-cli2Platform CLI
gemini skills install https://github.com/microsoft/power-platform-skills --path plugins/code-apps/skills/list-connectionsManually: put the files in place
.devin/skills/list-connections/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about list-connections
How do I install list-connections in Claude Code?
Run /plugin marketplace add microsoft/power-platform-skills, then /plugin install code-apps-preview@power-platform-skills, then npx skills add microsoft/power-platform-skills --skill list-connections -a claude-code. The skill will be available at ~/.claude/skills/list-connections/SKILL.md.
What does list-connections do?
It runs pa connection list and shows all Power Platform connections in the current environment, including the connection ID needed when you add a data source to your app.
What if the connector I need is not in the list?
The skill outputs the Power Apps connections URL: https://make.powerapps.com/environments/<environment-id>/connections. Go there, create the new connection, complete sign-in, then run the skill again to get its ID.
Source text
SKILL.md · MIT
---
name: list-connections
description: Lists Power Platform connections in the current environment. Use when you need a connection ID before adding a connector to a code app.
user-invocable: true
allowed-tools: Bash
model: haiku
---
**📋 Shared Instructions: [shared-instructions.md](${PLUGIN_ROOT}/shared/shared-instructions.md)** - Cross-cutting concerns (Windows CLI compatibility, memory bank, etc.).
# List Connections
Lists all Power Platform connections in the current environment using the Power Apps CLI.
## Workflow
1. Fetch Connections → 2. Present Results
---
### Step 1: Fetch Connections
> Resolve the CLI first (see [cli-binary.md](${PLUGIN_ROOT}/shared/cli-binary.md)): run as `$PA connection list` (`npx --no-install pa …`), never a bare `pa`. On `power-apps`-only projects, translate to `power-apps list-connections`.
```bash
pa connection list
```
If the CLI is not authenticated, it will open a browser for login automatically. Complete the login and retry.
**Other failures:**
- Non-zero exit for any reason other than auth: Report the exact output. STOP.
- No output or empty results: Verify the correct environment ID is set in `power.config.json`, then retry once.
### Step 2: Present Results
Show the connection list to the user. The **Connection ID** is what goes into `-c <connection-id>` when adding a data source.
**If the needed connector is missing:**
1. Share the direct Connections URL using the active environment ID from context (from `power.config.json` or a prior step): `https://make.powerapps.com/environments/<environment-id>/connections` → **+ New connection**
2. Search for and create the connector, then complete the sign-in/consent flow
3. Re-run `/list-connections` to get the new connection ID
© Microsoft · MIT · microsoft/power-platform-skills
Similar skills
All skills for Agent setup: memory, context, orchestration →list-connections by other authors comes first.