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 call a Dataverse action or function from a Power Apps code app?

Study FAQ

How do I call a Dataverse action or function 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 do I discover a Dataverse operation and generate its service in a code app?
  • How do I add WhoAmI or a bound Dataverse action to a Power Apps code app?

Answer

Use Power Apps CLI to discover the Dataverse operation in the configured environment and generate its TypeScript service. With an initialized code app and @microsoft/power-apps version 1.1.1 or later, you can start with the unbound WhoAmI function:

pa app find-dataverse-api --search "WhoAmI"
pa app add dataverse-api --api-name WhoAmI

Import the generated WhoAmIService and call WhoAmIService.WhoAmI(). Check the generated response and verify that it identifies the intended development user and organization. For a bound action such as AddToQueue, inspect the bind target, required parameters and return type. The generated signature for that action takes the binding row ID first.

When an operation definition changes, add the same operation again to update the generated contract. Review the diff and retest callers with the intended user. Verify a business action's actual outcome and permission checks independently of the identity returned by WhoAmI.

Add a Dataverse action or function to a code app

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.