PL 400 Power Apps Development 5 — Questions and Answers
Question 1: Which canvas app function retrieves all records from a Dataverse table where the 'Category' column is in a predefined list of values?
- Filter(TableName, Category in ["A","B","C"]) (Correct answer)
- Search(TableName, "A,B,C", "Category")
- LookUp(TableName, Category, ["A","B","C"])
- Sort(TableName, Category)
Correct answer: Filter(TableName, Category in ["A","B","C"])
The 'in' operator inside Filter() checks whether a column's value exists within a specified list, and this pattern is delegable for Dataverse.
Question 2: A canvas app component exposes an output property. How does the parent app read the component's output value?
- Reference it as ComponentName.OutputPropertyName in a formula (Correct answer)
- Use the Collect() function with the component's name
- Subscribe to the component's OnChange event in Power Automate
- Read it via a shared global variable set inside the component
Correct answer: Reference it as ComponentName.OutputPropertyName in a formula
Output properties defined in a canvas component are accessible from the host app by referencing ComponentInstanceName.PropertyName in any formula.
Question 3: In a model-driven app, which Dataverse feature automatically enforces field validation rules on the server side, independent of the form UI?
- Business rules set to 'Entity' scope (Correct answer)
- JavaScript form scripts
- Canvas app input validation formulas
- Command bar enable rules
Correct answer: Business rules set to 'Entity' scope
Business rules scoped to 'Entity' execute on the server, enforcing validations and field requirements even when data is modified via API rather than the form.
Question 4: Which statement correctly describes the role of the 'notifyOutputChanged' callback in a PCF control?
- It signals the framework that the control's output has changed so the bound property value can be updated (Correct answer)
- It refreshes the control's UI without calling updateView
- It sends a notification to the model-driven app's notification center
- It triggers a Power Automate flow from within the PCF control
Correct answer: It signals the framework that the control's output has changed so the bound property value can be updated
Calling notifyOutputChanged() tells the Power Apps framework to call getOutputs() on the control so the new value can propagate back to the bound Dataverse column.
Question 5: You need to display a loading spinner in a canvas app while a slow data operation runs. Which approach is most appropriate?
- Use a variable to toggle a spinner control's Visible property during the operation (Correct answer)
- Use the Timer control set to auto-start
- Add a Power Automate flow that sends a push notification when done
- Use UpdateContext to refresh the screen after the operation
Correct answer: Use a variable to toggle a spinner control's Visible property during the operation
Setting a Boolean variable to true before the operation and false after controls the Visible property of a spinner image or HTML control, showing it only during loading.
Question 6: Which Power Platform CLI command packages a solution folder into a .zip file for import into another environment?
- pac solution pack --zipfile solution.zip --folder ./SolutionFolder (Correct answer)
- pac solution export --name MySolution --path solution.zip
- pac pcf push --solution solution.zip
- pac auth pack --folder ./SolutionFolder
Correct answer: pac solution pack --zipfile solution.zip --folder ./SolutionFolder
The 'pac solution pack' command compresses an unpacked solution folder into a deployable .zip file that can be imported via the maker portal or CLI.
Question 7: In a canvas app, which formula would you write in the Items property of a dropdown to populate it with distinct values from the 'Region' column of a Dataverse table named 'Accounts'?
- Distinct(Accounts, Region) (Correct answer)
- Filter(Accounts, IsDistinct(Region))
- GroupBy(Accounts, "Region", "Groups")
- Sort(Unique(Accounts, Region), Region)
Correct answer: Distinct(Accounts, Region)
Distinct() returns a one-column table of unique values from the specified column, making it the correct formula for populating a dropdown with deduplicated options.
Which canvas app function retrieves all records from a Dataverse table where the 'Category' column is in a predefined list of values?