为 Power Apps 代码应用接入 Azure DevOps 连接器,便于查询工单、提报缺陷与管理流水线。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "add-azuredevops" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/code-apps/skills/add-azuredevops/SKILL.md 2. 保存为 ~/.claude/skills/add-azuredevops/SKILL.md 3. 装好后重载技能,告诉我可以用了
帮我为当前 Power Apps 代码应用添加 Azure DevOps 连接器,并提供一个示例:按项目和迭代查询未完成的工作项列表。
完成连接器接入说明,并给出可用于查询工作项的示例代码或调用配置。
请在 Power Apps 中接入 Azure DevOps 连接器,并生成一个创建 Bug 的示例,包含标题、优先级、重现步骤和指派人字段。
返回创建 Bug 的连接配置思路,以及可直接修改使用的示例请求或代码。
为 Power Apps 添加 Azure DevOps 连接器,并演示如何调用 ADO API 获取流水线状态、触发一次构建并读取执行结果。
提供流水线相关 API 调用示例,包含状态查询、触发构建和结果读取的基本流程。
📋 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 Azure DevOps 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 azuredevops -c <connection-id>
The generated code has a known issue: the HttpRequest method uses parameters as the parameter name, but the API expects body. Rename parameters to body in these 3 files:
Use the Edit tool to rename parameters to body in each file:
1. src/generated/services/AzureDevOpsService.ts:
Find the HttpRequest method. Rename the parameter and its usage:
// BEFORE (generated):
async HttpRequest(parameters: any) {
const params = { parameters: parameters, ... };
// AFTER (fixed):
async HttpRequest(body: any) {
const params = { body: body, ... };
2. .power/appschemas/dataSourceInfo.ts:
Find the visualstudioteamservices → HttpRequest → parameters section. Rename the property key:
// BEFORE (generated):
HttpRequest: {
parameters: {
parameters: { ... }
// AFTER (fixed):
HttpRequest: {
parameters: {
body: { ... }
3. .power/schemas/visualstudioteamservices/visualstudioteamservices.Schema.json:
Find the /{connectionId}/httprequest → post → parameters array. Change the name field:
// BEFORE (generated):
{ "name": "parameters", "in": "body", ... }
// AFTER (fixed):
{ "name": "body", "in": "body", ... }
Ask the user what Azure DevOps operations they need (query work items, create items, trigger pipelines, etc.).
HttpRequest -- make arbitrary ADO REST API calls:
await AzureDevOpsService.HttpRequest({
Uri: "https://dev.azure.com/{org}/{project}/_apis/wit/wiql?api-version=7.2",
Method: "POST",
Body: JSON.stringify({
query:
"SELECT [System.Id], [System.Title] FROM WorkItems WHERE [System.TeamProject] = @project"
})
});
Docs: Azure DevOps REST API
Use Grep to find specific methods in src/generated/services/AzureDevOpsService.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, HttpRequest fix applied, build status.
帮助你为当前协作会话配置 Canvas Authoring MCP 服务器并排查连接问题
帮助用户将 canvas-apps 插件问题整理并提交为规范的 GitHub issue。
帮助你为 Power Apps 代码应用添加数据源或连接器,并引导到合适操作流程。
为 Power Apps 代码应用快速接入任意 Power Platform 连接器。
为 Power Apps 代码应用添加 Excel Online 连接器,便于读写 OneDrive 或 SharePoint 中的表格数据。
为 Power Apps 代码应用添加 Copilot Studio 连接器,便于调用智能体与集成回复。
为 Power Apps 代码应用添加 Teams 连接器,实现消息发送与频道协作集成。
为 Power Apps 代码应用接入 SharePoint,支持列表、文档与站点集成
为 Power Apps 代码应用添加 OneDrive for Business 连接器,便于上传、下载和管理文件。
为 Power Apps 代码应用接入 Office 365 Outlook,实现邮件、日历与事件管理。
为 Power Apps 代码应用添加 Dataverse 表,并生成 TypeScript 模型与服务。
指导你在 Power Apps Studio 中添加数据源或连接器并完成验证。