Add a Copilot Studio connector to Power Apps code apps for agent integration.
The material indicates this is an open-source, prompt-only skill with no direct secrets requirement, no declared remote endpoint, and no local code execution by itself, so overall risk is low. Its purpose is to guide developers in wiring a Power Apps app to Microsoft Copilot Studio; actual integration may later involve calls to Microsoft services and business data transfer, but the skill material itself does not show concrete red flags.
The material and objective checks indicate the skill itself requires no secrets or environment variables. The README only references using an existing Power Apps/Copilot Studio connection ID and does not ask for extra tokens or show signs of collecting, exfiltrating, or abusing credentials.
This skill is classified as prompt-only and declares no remote hosts of its own. The documentation only describes later manual configuration involving Microsoft-related services such as make.powerapps.com and api.powerplatform.com, without showing the skill itself performing outbound data transfer.
Based on the provided material, the skill mainly provides procedural guidance and command examples such as npx power-apps add-data-source. There is no evidence that the skill itself launches local processes, executes code, or gains additional system privileges.
The material does not show the skill itself reading, writing, or uploading local files or data. The README mentions checking power.config.json, memory-bank.md, and generated service files as instructional references, but does not indicate automated data access or overbroad authorization.
The source is a GitHub-hosted open-source Microsoft power-platform-skills repository, which is a positive sign for auditability. However, the license is unspecified, community adoption is 0 stars, maintenance status is unknown, and the README references shared instruction files and contextual workflow steps, so manual review of repository contents and recent activity is still advisable before adoption.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "add-mcscopilot" skill from askskill: 1. Download https://raw.githubusercontent.com/microsoft/power-platform-skills/main/plugins/code-apps/skills/add-mcscopilot/SKILL.md 2. Save it as ~/.claude/skills/add-mcscopilot/SKILL.md 3. Reload skills and tell me it's ready
Add the Microsoft Copilot Studio connector to my Power Apps code app and provide sample code to send a user's question to an agent named SupportAgent and display the response.
Connector setup steps, configuration guidance, and sample code to call the agent and render its response.
Help me integrate the Copilot Studio connector in a Power Apps code app, build prompts dynamically from form inputs, send them to SalesAgent, and return structured results.
Reusable calling logic that supports dynamic prompt construction, request submission, and structured response handling.
Add the Copilot Studio connector and show how to handle success, empty results, and error states from agent responses in a Power Apps code app.
An integration approach plus examples of error handling and UI feedback for common response states.
📋 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 Microsoft Copilot Studio 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 microsoftcopilotstudio -c <connection-id>
Ask the user which Copilot Studio agent they want to invoke and what operations they need.
Agent Setup Prerequisites (manual steps the user must complete in Copilot Studio):
https://...api.powerplatform.com/copilotstudio/dataverse-backed/authenticated/bots/cr3e1_myAgent/conversations?... — the agent name is cr3e1_myAgent.ExecuteCopilotAsyncV2 -- execute an agent and wait for the response:
Use the ExecuteCopilotAsyncV2 operation (path: /proactivecopilot/executeAsyncV2). This is the only endpoint that reliably returns agent responses synchronously. It is the same endpoint used by Power Automate's "Execute Agent and wait" action.
const result = await MicrosoftCopilotStudioService.ExecuteCopilotAsyncV2({
message: "Your prompt or data here", // Can be a JSON string
notificationUrl: "https://notificationurlplaceholder" // Required by API but unused; any URL works
});
// Response structure:
// result.responses — Array of response strings from the agent
// result.conversationId — The conversation ID
// result.lastResponse — The last response from the agent
// result.completed — Boolean indicating if the agent finished
Important: Agents often return responses as JSON strings. Parse the responses array to extract meaningful data:
const agentResponse = result.responses?.[0];
if (agentResponse) {
const parsed = JSON.parse(agentResponse);
// Extract specific fields, e.g., parsed.trend_summary
}
Use Grep to find specific methods in the generated service file (generated files can be very large — see connector-reference.md).
/execute) -- fire-and-forget, only returns ConversationId, not the actual response. Do NOT use this./executeAsync) -- returns 502 "Cannot read server response" errors. Do NOT use this./conversations/{ConversationId}) -- only works after /execute, which doesn't provide responses. Do NOT use this.conversationId, ConversationId, conversationID.npm run build
Fix TypeScript errors before proceeding. Do NOT deploy yet.
Update memory-bank.md with: connector added, agent name configured, configured operations, build status.
Review and fix Power Pages security headers, CSP, CORS, cookies, and embedding settings.
Run an end-to-end Power Pages security review with a consolidated HTML report.
Test deployed Power Pages sites with browsing, crawling, and API verification.
Add a data source or connector to a Power Apps code app.
Add Azure DevOps to Power Apps for work items, bugs, pipelines, and API calls.
Set up Power Platform Pipelines for automated Power Pages deployments.
Add any Power Platform connector to a Power Apps code app.
Add a Teams connector to Power Apps for messaging and channel integration.
Add the Excel Online connector to read and write workbook data.
Connect SharePoint to Power Apps for lists, documents, and site integration.
Add the Office 365 Outlook connector for email and calendar features.
Find and install skills and MCP apps for AI coding assistants in VSCode.