A company performs an update to an existing column-bound Power Apps Component Framework (PCF) code component.You test the changes to the code component in the development environment. You then import the component to the production environment as a part of a managed solution. You observe that the changes to the component are not reflected in the production environment.You need to ensure that the changes are effective in the production environment.What should you do?
Answer(s): C
HOTSPOT (Drag and Drop is not supported)You develop the following code as part of an OnSave event handler in a form.For each of the following statements, select Yes if the statement is true. Otherwise, select No.NOTE: Each correct selection is worth one point.
Answer(s): A
You create a custom API. You define the API as a function.The custom API does not appear in the response received from https://[yourorg].api.crm.dynamics.com/api/data/v9.2/$metadata and returns an error when called.You need to identify why the custom API is not working.What should you do?
Answer(s): D
HOTSPOT (Drag and Drop is not supported)You are composing a request to the Microsoft Dataverse Web API that updates existing account records in Dataverse and returns resulting records in the response.You need to complete the request.Which value should you use for each property? To answer, select the appropriate options in the Value for Property area.NOTE: Each correct selection is worth one point.
Box 1: PATCHMethodBasic updateUpdate operations use the HTTP PATCH verb. Pass a JSON object containing the properties you want to update to the URI that represents the record. A response with a status of 204 No Content is returned if the update is successful.The If-Match: * header ensures you don't create a new record by accidentally performing an upsert operation.Box 2: Prefer: return=representationHeaderUpdate with data returnedTo retrieve data from an entity you're updating, you can compose your PATCH request so that data from the created record is returned with a status of 200 (OK). To get this result, you must use the Prefer: return=representation request header.To control which properties are returned, append the $select query option to the URL to the entity set. The $expand query option is ignored if used.This example updates an account entity and returns the requested data in the response.Request:PATCH [Organization URI]/api/data/v9.0/accounts(00000000-0000-0000-0000-000000000001)?$select=name,creditonhold,address1_latitude,description,revenue,accountcategorycode,createdon HTTP/1.1 OData-MaxVersion: 4.0 OData-Version: 4.0 Accept: application/json Content-Type: application/json; charset=utf-8 Prefer: return=representationIf-Match: * {"name":"Updated Sample Account"}
https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/update-delete-entities-using-web-api
DRAG DROP (Drag and Drop is not supported)A company develops a model-driven app. The company sets up a custom form for the Contact table. The app contains multiple custom app pages.You must extend the app as follows:-Run logic when a contact is saved.-Display data from an Azure SQL Server database.-Apply a consistent header across multiple app pages.-Run a Dataverse custom API when the Contact row is saved.You need to implement the app extension by using minimal development effort.What should you implement for each requirement? To answer, move the appropriate capabilities to the correct requirements. You may use each capability once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content.
Box 1: Client ScriptingRun logic when a contact is saved.Client-side scripting using JavaScript is one of the ways to apply custom business process logic for displaying data on a form in a model-driven app.Client scripting shouldn't be your first choice though for applying custom business process logic in model-driven app forms. Business rules provide a way for someone, who does not know JavaScript and is not a developer, to apply business process logic in a form. More information: Create business rules to apply logic. You will find the business rule designer within the Data > Tables > [table_name] area on make.powerapps.com. When you view table, look for the Business rules tab.However, if your business requirement can't be achieved using a business rule, you will find that client-scripting using the client API object model provides a powerful way to extend the behavior of the application and enable automation in the client.Box 2: Canvas componentDisplay data from an Azure SQL Server database.You can create a canvas app from Azure SQL Database.Box 3: PCF ControlApply a consistent header across multiple app pages.PCF enables the creation of user interface (UI) components that are visual controls performing actions such as buttons, sliders, checkboxes, etc. By embedding PCF into the CRM system or Power Apps application, we gain access to the entire data context. PCF components support modern web practices, enabling the creation of more advanced and interactive components.Box 4: Power FxRun a Dataverse custom API when the Contact row is saved.Power Fx is the low-code language that will be used across Microsoft Power Platform. It's a general-purpose, strong-typed, declarative, and functional programming language.Power Fx is expressed in human-friendly text. It's a low-code language that makers can work with directly in an Excel-like formula bar or Visual Studio Code text window. The "low" in low-code is due to the concise and simple nature of the language, making common programming tasks easy for both makers and developers. It enables the full spectrum of development from no-code for those who have never programmed before to "pro-code" for the seasoned professional, with no learning or rewriting cliffs in between, enabling diverse teams to collaborate and save time and expense.
https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/client-scriptinghttps://learn.microsoft.com/en-us/power-platform/power-fx/overview
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.