帮助你将 Power Pages Web API 集成到前端,并完成权限配置与部署上线。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "integrate-webapi" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/power-pages/skills/integrate-webapi/SKILL.md 2. 保存为 ~/.claude/skills/integrate-webapi/SKILL.md 3. 装好后重载技能,告诉我可以用了
请帮我在 Power Pages 站点前端接入 Web API,从 Dataverse 的 Contact 表读取当前用户可见的数据。请提供前端调用示例、所需表权限配置,以及部署注意事项。
返回用于前端读取数据的示例代码、对应的表权限设置说明,以及可上线的部署步骤清单。
我想在 Power Pages 页面表单提交后,通过 Web API 向 Dataverse 的 Case 表新增一条记录。请帮我设计前端调用代码、权限配置和发布流程,确保访客提交能成功写入。
输出创建记录的前端代码方案、访客可用的权限配置建议,以及从测试到发布的实施步骤。
请为我的 Power Pages 站点规划一个完整的 Web API CRUD 集成方案,目标表为 Custom Requests。需要包含读取、创建、更新、删除的前端代码结构、表权限策略,以及部署到正式环境的建议。
给出覆盖 CRUD 的集成方案,包括代码结构、权限矩阵和正式环境部署建议,便于直接落地实施。
Plugin check: Run
node "${CLAUDE_PLUGIN_ROOT}/scripts/check-version.js"— if it outputs a message, show it to the user before proceeding.
Integrate Power Pages Web API into a code site's frontend. This skill orchestrates the full lifecycle: analyzing where integrations are needed, implementing API client code for each table, configuring permissions and site settings, and deploying the site.
powerPagesApi.ts client. Once that exists, remaining tables can be processed in parallel since each creates independent files (types, service, hooks).table-permissions-architect and webapi-settings-architect agents are independent — invoke them in parallel rather than sequentially..powerpages-site folder must exist before table permissions and site settings can be configured. Integration code can be written without it, but permissions cannot.Prerequisites:
/create-site/setup-datamodel or created manually.powerpages-site folder must exist) for permissions setupInitial request: $ARGUMENTS
webapi-integration agent for each table/deploy-site if confirmedGoal: Locate the Power Pages project root and confirm that prerequisites are met
Actions:
Look for powerpages.config.json in the current directory or immediate subdirectories to find the project root. Use your file-search tool (e.g., Glob with patterns powerpages.config.json and */powerpages.config.json) rather than a shell-specific command.
If not found: Tell the user to create a site first with /create-site.
Read powerpages.config.json to get the site name.
Read package.json to determine the framework (React, Vue, Angular, or Astro). See ${CLAUDE_PLUGIN_ROOT}/references/framework-conventions.md for the full framework detection mapping.
Look for .datamodel-manifest.json to discover available tables:
**/.datamodel-manifest.json
If found, read it — this is the primary source for table discovery.
Look for the .powerpages-site folder:
**/.powerpages-site
If not found: Warn the user that the permissions phase (Phase 5) will require deployment first. The integration code (Phases 2–4) can still proceed.
Output: Confirmed project root, framework, data model availability, and deployment status
Goal: Analyze the site code and data model to identify all tables needing Web API integration
Actions:
…
为 Power Apps 代码应用接入 Azure DevOps 连接器,便于查询工单、提报缺陷与管理流水线。
为 Power Apps 代码应用添加 Dataverse 表,并生成 TypeScript 模型与服务。