Domain 2 of 3 · Chapter 2 of 2

Create canvas apps

Unlock the complete study guide.

Bundled into the existing Building Intelligent Applications premium course — no separate purchase.

14-day refund guarantee on one-time purchases and your first subscription charge.

Included in this chapter:

  • Building a canvas app on data
  • Edit forms: selecting, saving, and cancelling records
  • Writing data with Patch and Remove
  • Variables and collections
  • Reusable formulas: named formulas, UDFs, and With
  • Fallback values with Coalesce
  • Delegation: where a query runs
  • Performance: startup, data calls, and app size
  • Accessibility: labels, keyboard, color, and structure
  • Usability: input controls, validation, and navigation
  • Responsive layout
  • Canvas components and component libraries
  • Automating processes by calling cloud flows
  • Error handling in Power Fx
  • Testing canvas apps before release
  • Diagnosing problems with Live monitor
  • Creating a Copilot Studio agent from a canvas app

Where a canvas app keeps a value: named formula, global variable, context variable, or collection

QuestionNamed formulaGlobal variableContext variableCollection
Created byName = formula in App.FormulasSetUpdateContext, or Navigate's third argumentCollect or ClearCollect
Readable fromThe whole appThe whole appOnly its own screenThe whole app
HoldsWhatever its formula returnsAny value: number, text, record, or tableAny value: number, text, record, or tableA table of records
How the value changesRecalculates when its inputs change; cannot be reassignedOnly when a behavior formula calls SetOnly when UpdateContext or Navigate sets itOnly when a behavior formula changes it, for example Collect, Remove, Clear, or ClearCollect
Typical useA derived value many controls share, such as the current user's recordRemembering a user action that several screens needScreen-local state and parameters passed to a screenA working list, or a small cached lookup table

Decision tree

Derived by a formula,used by one control?YesFormula in thatcontrol propertyNoDerived by a formula,shared by severalcontrols?YesNamed formula(App.Formulas)NoA table you addrows to and removerows from?YesCollection(ClearCollect)NoNeeded on morethan one screen?YesGlobal variable(Set)NoContext variable(UpdateContext,or Navigate)

Cheat sheet

  • Uploading Excel data and connecting to a workbook create different data arrangements
  • A form's Item selects a record while DataSource selects its table
  • NewForm switches an edit form to data-source defaults
  • ResetForm discards edits that navigation alone would retain
  • SubmitForm validates entries and signals the save outcome
  • LastSubmit exposes server-generated values after a successful form save
  • Patch changes specified fields without replacing the whole record
  • Patch creates a row when its base record comes from matching Defaults
  • Later Patch change records override earlier values for the same field
  • Batch Patch matches base and change records one for one
  • A gallery repeats its template over the table in Items
  • Filter returns a matching table while LookUp selects the first match
  • Display forms and View mode provide read-only record presentation
  • Data-card bindings determine which values a form writes
  • Deleting a persisted record requires Remove to target its connected data source
  • Delegation depends on the complete expression and its data source
  • Nondelegable queries process only a bounded initial set of source records
  • Membership delegation applies to columns of the base data source
  • Loading a collection does not bypass source retrieval limits
  • Explicit Column Selection reduces retrieved columns rather than rows
  • DelayOutput reduces recalculation while a user types
  • Concurrent accelerates independent calls but cannot order dependent work
  • References to unloaded-screen controls can force those screens to load
  • StartScreen selects the opening screen without blocking on OnStart
  • Per-row related lookups can multiply gallery network requests
  • Smaller collection caches reduce client memory pressure
  • Removing unused media and right-sizing images reduces the app's loading footprint
  • AccessibleLabel supplies meaningful screen-reader descriptions
  • Keyboard navigation should use logical structure and nonpositive tab-index choices
  • Custom text colors need sufficient contrast with their background
  • Semantic headings and buttons communicate structure and interaction
  • Pen input needs an alternative method for accessible signatures
  • Accessible multimedia requires captions and transcripts
  • A combo box supports multiple selections and returns them through SelectedItems
  • Combo-box searching needs text fields and a delegable Items expression
  • Unsaved identifies edits that need protection before record switching
  • Back returns through screen history while Navigate names a destination
  • SetFocus requires an eligible control on the calling formula's screen
  • IsMatch validates a text pattern rather than merely the presence of input
  • Combo-box selections are not retained while a containing gallery scrolls
  • A Boolean Visible formula conditionally hides or shows a control
  • DisplayMode distinguishes editable input, readable output, and disabled interaction
  • A Drop down with AllowEmptySelection false selects an item before user input
  • Focused border properties make the keyboard focus position visible
  • A label's Live property controls how screen readers announce changing messages
  • Responsive layout starts by turning off Scale to fit
  • Auto-layout containers position their children automatically
  • Relative dimension formulas preserve layout as a parent changes size
  • SizeBreakpoints determines the screen-size classifications used by layout formulas
  • Dragging controls can replace responsive formulas with constants
  • A flow must have a Power Apps trigger before it can be added to an app
  • Adding a flow does not automatically call it from the selected control
  • Power Apps V2 declares the inputs supplied by the canvas app
  • A file input carries file content and its name
  • Flows edited outside Studio must be refreshed in the app
  • Remove from app detaches a flow without deleting it
  • Flow inputs from an app require server-side validation
  • Named formulas provide reusable values that update with dependencies
  • Named formulas cannot perform behavior actions or form circular dependencies
  • User-defined functions add typed parameters to reusable Power Fx logic
  • Behavior user-defined functions wrap side effects in a braced body
  • Power Fx user-defined functions do not support recursion
  • With names intermediate values within a single formula
  • Coalesce selects the first value that is neither blank nor an empty string
  • Editing a component definition updates its instances in the app
  • Custom input and output properties define a component's interface
  • App scope is optional for local components but unavailable in a library
  • Published component-library changes require adoption by consuming apps
  • A locally customized component copy no longer receives library updates
  • A maker must have access to a component library to import it
  • Screens in a component library exist for testing rather than end-user delivery
  • Canvas components cannot be inserted into galleries or forms
  • Component libraries do not support adding and running Power Automate flows
  • A canvas component library cannot host code components
  • Set creates app-wide state while UpdateContext creates screen-local state
  • Navigate can initialize the destination screen's context
  • A context variable shadows a same-named global value
  • Collect appends records while ClearCollect replaces a collection's contents
  • Clear removes collection rows but preserves its columns
  • Collections are mutable snapshots rather than automatically refreshed queries
  • Collect adds a table's rows individually unless the table is wrapped in a record
  • Variable-defining formulas must agree on the variable's type
  • Context-variable values survive navigation away from their screen
  • Session state must be explicitly persisted to survive closing the app
  • Remove deletes a selected collection record without clearing the working set
  • Direct property formulas recalculate derived values without variable reassignment
  • Formula-level error management must be enabled for current error semantics
  • IfError can replace a failed calculation at the point of use
  • App.OnError centralizes reporting for unhandled errors
  • Semicolon-chained actions do not stop automatically after an error
  • Errors returns structured information about prior data-source operations
  • AllErrors preserves multiple failures that FirstError alone cannot describe
  • Conflict handling depends on the data source's conflict-detection support
  • A failed ForAll iteration does not stop the remaining iterations
  • Live monitor can trace either an authoring session or a published app
  • Debug published app adds source expressions at a performance cost
  • HTTP 429 events in Live monitor indicate request throttling
  • Test Studio automates canvas-app UI regression scenarios
  • Test cases in a suite share app state and run sequentially
  • Assertions make a recorded interaction test an outcome check
  • Test Studio does not cover every canvas control type
  • A Data row limit of one makes local query evaluation easier to detect
  • Accessibility Checker identifies potential issues rather than certifying the app
  • Trace adds custom diagnostic events to Live monitor
  • Live monitor network details distinguish latency, payload size, and failed requests
  • Canvas Live monitor requires Environment Admin or Environment Maker membership
  • Agent builder combines an existing canvas app's metadata with an automation goal
  • Agent builder requires specific environment capabilities and settings
  • Generated agent instructions need review before creation
  • The generated agent is edited, tested, and published in Copilot Studio
  • Missing source connections can leave a generated agent without usable actions
  • Agent builder is canvas-only and excludes deprecated Excel connectors
  • Autonomous operation requires actions that do not prompt users for credentials

Unlock with Premium — includes all practice exams and the complete study guide.

References

  1. https://learn.microsoft.com/en-us/credentials/certifications/resources/study-guides/ab-410
  2. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-formulas-in-depth
  3. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/get-started-create-from-blank
  4. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-forms
  5. https://learn.microsoft.com/en-us/power-platform/power-fx/operators
  6. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-remove-removeif
  7. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-filter-lookup
  8. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/control-form-detail
  9. https://learn.microsoft.com/en-us/power-apps/maker/model-driven-apps/types-forms
  10. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/control-card
  11. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-form
  12. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/properties-core
  13. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/control-gallery
  14. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-patch
  15. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-variables
  16. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-navigate
  17. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-savedata-loaddata
  18. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-clear-collect-clearcollect
  19. https://learn.microsoft.com/en-us/power-apps/guidance/coding-guidelines/code-optimization
  20. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/object-app
  21. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-with
  22. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-isblank-isempty
  23. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/delegation-overview
  24. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-concurrent
  25. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/control-text-input
  26. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/modern-controls/modern-control-text-input
  27. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/accessible-apps
  28. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/properties-accessibility
  29. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/accessibility-checker
  30. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/control-combo-box
  31. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/control-drop-down
  32. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/modern-controls/modern-control-combobox
  33. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-ismatch
  34. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-setfocus
  35. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/create-responsive-layout
  36. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/create-component
  37. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/component-library
  38. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-flows
  39. https://learn.microsoft.com/en-us/troubleshoot/power-platform/power-automate/flow-creation/known-issues-power-apps-v2-trigger
  40. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/how-to/pdf-function
  41. https://learn.microsoft.com/en-us/power-automate/guide-to-cloud-flow-sharing-permissions
  42. https://learn.microsoft.com/en-us/power-platform/power-fx/error-handling
  43. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-errors
  44. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-iferror
  45. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-showerror
  46. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-trace
  47. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/test-studio
  48. https://learn.microsoft.com/en-us/power-apps/maker/monitor-canvasapps
  49. https://learn.microsoft.com/en-us/power-apps/maker/monitor-overview
  50. https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/agent-builder
  51. https://learn.microsoft.com/en-us/power-apps/maker/common/faq-agent-builder