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 should a PCF component use Device, Utility and Web API capabilities?

Study FAQ

How should a PCF component use Device, Utility and Web API capabilities?

Exam · AB-400Knowledge domain · Extend the user experience (25–30%)Updated Nov 25, 2026
Also asked as 2
  • How do I declare PCF features and handle hosts that lack them?
  • How can a PCF control use camera, metadata or Dataverse reads while handling unavailable capabilities?

Answer

Check the intended app and client for each PCF method. Declare the feature in manifest feature-usage, mark it required only when the control cannot operate without it, and give optional capabilities a fallback.

  • Device. For optional mobile image capture, declare Device.captureImage with required="false". Check availability, launch capture after a user action, and handle cancellation or permission denial. Test the fallback on an unsupported client.
  • Utility. In a supported model-driven host, use context.utils for features such as metadata or lookup dialogs. When hasEntityPrivilege depends on uncached metadata, retrieve the metadata first. Treat the result as a table-level hint and handle the actual row operation's outcome.
  • Web API. In a supported host, declare WebAPI and use context.webAPI for a bounded read, for example retrieving only the account name. Capture the input identifier before the call and discard responses that no longer match the current request or arrive after disposal. Distinguish a failed read from a missing display value.

Test with the intended user's role and supported client. Include a denied permission, a host without the optional feature and an input change during a pending request.

PCF feature-usage manifest example · Optional and required PCF features · Camera capture · Privilege API · PCF retrieveRecord

Full explanation

AB-400: Building Reusable PCF Code Components

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.