Skip to content
LearningPathX
Learning PathsFree TestsExam InfoHow it worksNews
Sign inChoose a certification
  1. Home/
  2. Certifications/
  3. AB-400/
  4. AB-400 Learning Path/
  5. Study FAQs/
  6. How do I invoke a Copilot Studio agent from a Power Apps code app?

Study FAQ

How do I invoke a Copilot Studio agent from a Power Apps code app?

Exam · AB-400Knowledge domain · Extend the user experience (25–30%)Updated Nov 25, 2026
Also asked as 2
  • How can I connect a published Copilot Studio agent and wait for its response in a code app?
  • How do I use a Copilot Studio response as a draft inside a Power Apps code app?

Answer

Add an approved Microsoft Copilot Studio connection to the code app and call the generated ExecuteCopilotAsyncV2 operation for a published agent. This is the documented Execute Agent and wait operation, which returns responses synchronously.

In the initialized project, use pa connection list to find the intended connection and add it with pa app add data-source --connector "shared_microsoftcopilotstudio" --connection-id <connectionId>. Inspect the generated service. Pass the permitted message, the case-sensitive agentName from the published agent's Web app channel connection details, and the documented notificationUrl placeholder https://notificationurlplaceholder. This synchronous mode requires the placeholder as an input and returns through the operation response.

Read completion and response data through the generated contract, including its conversation identifier when relevant. Show suggested text as a draft for review. Validate structured data before using it and keep data saves and workflow calls behind their own authorized user actions. Test malformed, empty and incomplete responses after checking the correct tenant, agent publication and connection.

Connect Power Apps code apps to Copilot Studio

Full explanation

AB-400: Building Code Apps with Dataverse and Automation

Study guide · AB-400

Read the full explanation →
← Back to AB-400 FAQsView learning path →

Related questions

How do I use environment variables for a code app's data source? →How do I read Dataverse table metadata in a Power Apps code app? →How do I deploy a Power Apps code app into a specific solution and share it? →How do I initialize and run a Power Apps code app locally? →How do I find what is slowing down a Power Apps code app? →How can a model-driven JavaScript command read a saved row instead of unsaved form values? →
LearningPathX

A focused path to certification, one clear step at a time.

© 2026 LearningPathX. All rights reserved.

Product

CertificationsLearning PathsFree TestsHow it worksNews

Company

SubscriptionHelp centerContact usPrivacyTerms

Follow us

Your privacy choices

We use analytics cookies to understand how LearningPathX is used and improve your learning experience. Analytics will only start after you accept.