Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than once correct solution, while others might not have a correct solution.After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.You are developing a model-driven app for a company.When you create a new Account record, you must automatically display a form to collect data that is needed to create a Contact record. The form must switch to the appropriate form layout based on the contact type.You open the Contact form by using JavaScript. You pass the contact type information to the form by using the Xrm.Navigation.openForm function. An OnLoad event handler in the Contact form processes the data and shows only the appropriate sections of the form for the given contact type.You need to configure the receiving form to accept the data parameter.Solution: In the form editor, add a web resource that sets formContext.data.attributes.Does the solution meet the goal?
Answer(s): B
By default, model-driven apps allows a specified set of query string parameters to be passed to a form. You use these parameters to set default values when you create a new record in the application. Each parameter must use a standard naming convention that includes a reference to the column logical name.There are two ways to specify which query string parameters will be accepted by the form:-Edit form properties-Edit form XML
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/configure-form-accept-custom-querystring-parameters
You are creating a model-driven app.A JavaScript function must be manually initiated by the user from within an entity form.You need to add a button to the form to run the JavaScript.What should you do?
Answer(s): A
How to add JavaScript to existing button in Ribbon WorkBench.Open Ribbon workbench and Right click on Assign button from Account form and click on Customize Button. Add Enable rule and call Javascript function.Note: An Entity Form is a way to show a form in your Dynamics 365 Portal to allow your users to enter data.You can use the Ribbon workbench for Dynamics 365 to add a custom button on entity form in Account with JavaScript action.
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/customize-commands-ribbon https://docs.microsoft.com/en-us/dynamics365/customer-service/configure-link-to-conversation-model-driven-app-form
HOTSPOT (Drag and Drop is not supported)You need to complete a Power Apps component framework (PCF) control.How should you define the order in the manifest? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.Hot Area:
Box 1: 1The css order element is the order in which the CSS files should load.Box 2: 1The html order element is the order in which the HTML files should load.
https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/css https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/html
HOTSPOT (Drag and Drop is not supported)You are developing a business process flow.JavaScript must be used to implement additional business logic in the business process flow.You need to evaluate the JavaScript code.What is the result of running each code segment? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.Hot Area:
Box 1: Hides the control in the body of the form.The Client API form context (formContext) provides a reference to the form or to an item on the form, such as, a quick view control or a row in an editable grid, against which the current code is executed. setVisible sets a value that indicates whether the control is visible.Box 2: Add an event handler to enable a function named TestFunction to run when the business process flow stage changes. addOnStageChange adds a function as an event handler for the OnStageChange event so that it will be called when the business process flow stage changes.
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/clientapi-form-context https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-data-process/eventhandlers/addonstagechange
You are creating a canvas app for a bank. Consumers will enter information into the app when they apply for a loan.The input form for the app must display fields to prompt the consumer for their first name, last name, address, and the requested loan amount.Immediately after a consumer enters a value for the LoanAmount field, the background color for the column must change. The background color for the column must change to red if a consumer enters a value of more than $5,000 and must turn green for values less than or equal to $5,000.You need to implement the required behavior.Which option should you use?
Answer(s): D
Conditional formatting in Power Apps can be done with formulas.
https://powerapps.microsoft.com/en-us/blog/conditional-formatting-in-powerapps/
Post your Comments and Discuss Microsoft PL-400 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the PL-400 content, but please register or login to continue.