add-teams
Agent skill frommicrosoft/power-platform-skills
Adds Microsoft Teams connector to a Power Apps code app. Use when sending Teams messages, posting to channels, or integrating with Teams chat.
How to install add-teams
install add-teams
# install the power-platform-skills pack with the skills CLI
npx skills add microsoft/power-platform-skills# or add only this skill to Claude Code: copy the folder
plugins/code-apps/skills/add-teams/
# into
~/.claude/skills/add-teams/ (all projects)
.claude/skills/add-teams/ (one project)
1**📋 Shared Instructions: [shared-instructions.md](../../shared/shared-instructions.md)** - Cross-cutting concerns.23# Add Teams45## Workflow671. Check Memory Bank → 2. Add Connector → 3. Configure → 4. Build → 5. Update Memory Bank89---1011### Step 1: Check Memory Bank1213Check for `memory-bank.md` per [shared-instructions.md](../../shared/shared-instructions.md).1415### Step 2: Add Connector1617Get the connection as described in [connector-reference.md](../../shared/connector-reference.md#connections).1819**CLI 1.3.0+ (`PA_INLINE_CONNECTIONS=yes`):** tell the user that adding Teams may create a connection with their account, then run the add without `-c` and handle the result with the outcome table in connector-reference.md:2021```bash22pa app add data-source --connector teams --non-interactive23```2425**Older CLIs:** run `/list-connections` to find the Teams connection ID (if none exists, create one with `pa connection create` as described in connector-reference.md), then:2627```bash28pa app add data-source --connector teams -c <connection-id>29```3031### Step 3: Configure3233Ask the user what Teams operations they need (send message, post to channel, etc.).3435**PostMessageToConversation** -- sends a chat message via Flow bot:3637```typescript38await TeamsService.PostMessageToConversation({39 "Post as": "Flow bot",40 "Post in": "Chat with Flow bot",41 "Post message request": {42 recipient: "<recipient-upn-or-id>", // UPN or Entra object ID43 messageBody: "<p>HTML message</p>", // HTML format44…
Excerpt shown under the repository's MIT license.
