为 Power Apps 代码应用添加 Teams 连接器,实现消息发送与频道协作集成。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "add-teams" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/code-apps/skills/add-teams/SKILL.md 2. 保存为 ~/.claude/skills/add-teams/SKILL.md 3. 装好后重载技能,告诉我可以用了
请为我的 Power Apps 代码应用添加 Microsoft Teams 连接器,用于向指定用户发送 Teams 消息,并给出基本配置步骤。
返回已添加 Teams 连接器的配置说明,并说明如何在应用中发送用户消息。
帮我在 Power Apps 代码应用中接入 Teams 连接器,以便在任务状态更新时自动向某个 Teams 频道发布通知。
返回适合频道发帖的 Teams 集成配置,并说明如何触发自动通知。
请将 Microsoft Teams 连接器加入这个 Power Apps 代码应用,用于接入 Teams 聊天相关流程,例如从应用中发起聊天或同步会话信息。
返回支持 Teams 聊天场景的连接器接入结果与可用操作说明。
📋 Shared Instructions: shared-instructions.md - Cross-cutting concerns.
Check for memory-bank.md per shared-instructions.md.
First, find the connection ID (see connector-reference.md):
Run the /list-connections skill. Find the Teams connection in the output. If none exists, direct the user to create one using the environment-specific Connections URL — construct it from the active environment ID in context (from power.config.json or a prior step): https://make.powerapps.com/environments/<environment-id>/connections → + New connection → search for the connector → Create.
npx power-apps add-data-source -a teams -c <connection-id>
Ask the user what Teams operations they need (send message, post to channel, etc.).
PostMessageToConversation -- sends a chat message via Flow bot:
await TeamsService.PostMessageToConversation({
"Post as": "Flow bot",
"Post in": "Chat with Flow bot",
"Post message request": {
recipient: "<recipient-upn-or-id>", // UPN or Entra object ID
messageBody: "<p>HTML message</p>", // HTML format
isAlert: false,
feedbackLoopEnabled: false
}
});
Use Grep to find specific methods in src/generated/services/TeamsService.ts (generated files can be very large -- see connector-reference.md).
npm run build
Fix TypeScript errors before proceeding. Do NOT deploy yet.
Update memory-bank.md with: connector added, configured operations, build status.
为 Power Apps 代码应用接入 Azure DevOps 连接器,便于查询工单、提报缺陷与管理流水线。
为 Power Apps 代码应用接入 SharePoint,支持列表、文档与站点集成