PL 400 Model-Driven Apps 2 — Questions and Answers
Question 1: Which file type is used to define a model-driven app's sitemap in a solution?
- AppModule XML
- SiteMap XML (Correct answer)
- Ribbon XML
- FormXml
Correct answer: SiteMap XML
The SiteMap XML defines the navigation structure of a model-driven app and is exported as part of a solution.
Question 2: A developer needs to run custom logic whenever a form field value changes in a model-driven app. Which approach should they use?
- Plug-in on Retrieve message
- OnChange event handler in JavaScript (Correct answer)
- Power Automate cloud flow triggered on update
- Business rule with real-time workflow
Correct answer: OnChange event handler in JavaScript
The OnChange event handler in JavaScript fires immediately when a field value changes on the form without requiring a save.
Question 3: What is the purpose of the Xrm.WebApi.createRecord method in model-driven apps?
- Retrieves a single record by ID
- Creates a new record in Dataverse via client-side JavaScript (Correct answer)
- Updates an existing record
- Deletes a record and its related entities
Correct answer: Creates a new record in Dataverse via client-side JavaScript
Xrm.WebApi.createRecord is a client API method that creates a new record in a Dataverse table from client-side JavaScript.
Question 4: Which security concept controls which columns a user can read or update in a Dataverse table used by a model-driven app?
- Row-level security
- Column-level security (field-level security) (Correct answer)
- Business unit hierarchy
- Sharing records
Correct answer: Column-level security (field-level security)
Column-level security (field-level security) in Dataverse restricts access to specific columns for users regardless of their security role.
Question 5: A model-driven app developer wants to display a custom web resource inside a main form. What control type should they add to the form?
- Subgrid control
- Web resource control (iframe-equivalent) (Correct answer)
- Quick view form control
- Timeline control
Correct answer: Web resource control (iframe-equivalent)
A web resource control embeds an HTML or other web resource directly within a model-driven app form section.
Question 6: When using Xrm.Navigation.navigateTo to open a form, which parameter specifies that the form should open as a dialog?
- formType: dialog
- target: 2 (Correct answer)
- windowPosition: center
- inline: false
Correct answer: target: 2
Setting target: 2 in the navigationOptions parameter of Xrm.Navigation.navigateTo opens the form as a dialog box.
Question 7: Which type of form in a model-driven app is used specifically to display read-only information from a related record directly on the parent record's form?
- Main form
- Quick Create form
- Quick View form (Correct answer)
- Card form
Correct answer: Quick View form
Quick View forms display read-only information from a related record and are embedded within the main form of a parent record.
Which file type is used to define a model-driven app's sitemap in a solution?