PL 400 Create Power Apps 4 — Questions and Answers
Question 1: A developer needs to create a business rule in Dataverse that sets a field value based on another field's value without writing code. Which tool should they use?
- JavaScript web resource
- Dataverse business rule (Correct answer)
- Power Automate cloud flow
- Calculated column
Correct answer: Dataverse business rule
Dataverse business rules allow no-code conditional logic that sets field values, shows/hides fields, and validates data on forms.
Question 2: When configuring a canvas app for use in Microsoft Teams, which publishing action makes it available to an organization's Teams users?
- Share the app with the 'Everyone' security group in Power Apps admin center
- Add the app to Teams using the Power Apps Teams app and publish to the org app catalog (Correct answer)
- Export the app and upload it as a Teams custom app package
- Embed the app URL in a Teams tab using a Website tab
Correct answer: Add the app to Teams using the Power Apps Teams app and publish to the org app catalog
The Power Apps Teams app allows adding a canvas app as a tab and publishing it to the organizational app catalog for broad Teams access.
Question 3: A model-driven app developer needs to execute custom JavaScript when a specific field value changes on a form. Which method should they register?
- formContext.ui.addOnLoad(handler)
- formContext.getAttribute('fieldname').addOnChange(handler) (Correct answer)
- Xrm.App.addEventHandler('onChange', handler)
- formContext.ui.tabs.get(0).addEventHandler(handler)
Correct answer: formContext.getAttribute('fieldname').addOnChange(handler)
The addOnChange method on an attribute object registers a handler that fires whenever that attribute's value changes on the form.
Question 4: Which formula correctly retrieves all records from a Dataverse table named 'Invoices' where the Status equals 'Open' and the Amount is greater than 1000?
- Filter(Invoices, Status = "Open" && Amount > 1000) (Correct answer)
- Search(Invoices, "Open", "Status") && Amount > 1000
- LookUp(Invoices, Status = "Open", Amount > 1000)
- Filter(Invoices, And(Status = "Open", Amount > 1000))
Correct answer: Filter(Invoices, Status = "Open" && Amount > 1000)
The Filter function with && (logical AND) combines multiple conditions and is delegable to Dataverse for server-side filtering.
Question 5: A developer needs to display a list of items from Dataverse in a canvas app and allow users to select multiple records. Which control supports multi-select natively?
- Gallery with a Checkbox control inside each item
- Dropdown control with SelectMultiple = true
- ListBox control
- ComboBox control with SelectMultiple = true (Correct answer)
Correct answer: ComboBox control with SelectMultiple = true
The ComboBox control has a SelectMultiple property that, when set to true, allows users to select multiple items from the list.
Question 6: In a Power Apps model-driven app, what is the purpose of a 'Quick View Form'?
- A simplified form used on mobile devices
- A form that displays read-only data from a related record on the main record's form (Correct answer)
- A popup dialog for quick data entry
- A form visible only to system administrators
Correct answer: A form that displays read-only data from a related record on the main record's form
Quick View Forms display read-only fields from a related record inline on the main record's form, showing related data without navigation.
Question 7: A developer wants to ensure that a canvas app's gallery only shows records the current user created. Which formula accomplishes this with delegation support in Dataverse?
- Filter(MyTable, CreatedBy.Email = User().Email) (Correct answer)
- Filter(MyTable, Author = User().FullName)
- Filter(MyTable, 'Created By' = User().Email)
- Filter(MyTable, OwnerId = User().Email)
Correct answer: Filter(MyTable, CreatedBy.Email = User().Email)
Dataverse supports delegating Filter on system lookup columns like CreatedBy, and comparing the Email sub-field to User().Email is a delegable pattern.
A developer needs to create a business rule in Dataverse that sets a field value based on another field's value without writing code.
Which tool should they use?