HOTSPOT (Drag and Drop is not supported)You are examining code written by another developer that is not functioning correctly. There are no other JavaScript or business rules in use on the form.This code is properly registered to the OnChange event of the telephone1 field on an account entity form. The main operation is to update the primary contact’s phone number when the account phone number changes.The primary contact field is a lookup. (Line numbers are included for reference only.)For each of the following statements, select Yes if the statement is true. Otherwise, select No.NOTE: Each correct selection is worth one point.Hot Area:
Answer(s): A
Box 1: YesgetFormTyp gets the form type for the record. Form type 2 is Update.Note: Syntax: formContext.ui.getFormType(); Return ValueType: NumberDescription: Form type. Returns one of the following valuesRETURN VALUEValue Form type0 Undefined1 Create2 Update3 Read Only4 Disabled6 Bulk EditBox 2: YesXrm.WebApi.updateRecord Return Value: On success, returns a promise object containing the values specified earlier in the description of the successCallback parameter.Note:Syntax: Xrm.WebApi.updateRecord(entityLogicalName, id, data).then(successCallback, errorCallback); Where errorCallback: A function to call when the operation fails. An object with the following properties will be passed:errorCode: Number. The error code.message: String. An error message describing the issue.Box 3: NoIt will displayed even if the update fails.
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-ui/getformtypehttps://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-webapi/updaterecord
HOTSPOT (Drag and Drop is not supported)You have the following JavaScript function: (Line numbers are included for reference only.)The Annual Revenue view column is configured to call the function as shown in the Column Properties exhibit. (Click the Change Column Properties tab.)Users report that the icons that appear in the Active Accounts view are incorrect, as shown in the Active Accounts View exhibit. (Click the Active Accounts View tab.)You need to determine why the incorrect icons are being displayed.For each of the following statements, select Yes if the statement is true. Otherwise, select No.Hot Area:
Box 1: NoparseFloat will return 'NaN' if it's not a number (null and undefined are NaNs). Box 2: NoBox 3: YesSession.userLCID is the Locale ID for the ASP application.
https://support.microsoft.com/en-us/help/229690/how-to-set-the-asp-locale-id-per-the-browser-s-language-settings
HOTSPOT (Drag and Drop is not supported)You develop the following JavaScript code for a web resource that will be used in a model-driven app.For each of the following statements, select Yes if the statement is true. Otherwise, select No.NOTE: Each correct selection is worth one point. Hot Area:
Box 1: YesProblem patterns: Web-use-asyncThere are multiple ways to interact with the server or request resources. Common approaches that allow for synchronous communications include the following (These scenarios should be avoided.):-Usage of the XMLHttpRequest object passing in false for the value of the async parameter for the open function callvarrequestXhr = new XMLHttpRequest();// Explicitly setting the async parameter to false or supplying a variable with a value of false will force this as a synchronous call.requestXhr.open('GET', '/test/test.txt', false);Box 2: No=== - Strict Equality Comparison is already used in the code.Box 3: NoNo debugger statement in the code, so web-remove-debug-script (avoid including debug script in non- development environments) does not apply.
https://docs.microsoft.com/sr-cyrl-rs/powerapps/developer/model-driven-apps/best-practices/business-logic/ interact-http-https-resources-asynchronouslyhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Strict_equality
A company is creating a Power Apps portal to collaborate with vendors.You need to implement custom functionality in the portal by using JavaScript code.Which two portal entities can you use? Each correct answer presents a complete solution.NOTE: Each correct selection is worth one point.
Answer(s): A,D
HOTSPOT (Drag and Drop is not supported)You need to develop a set of Web API’s for a company.What should you implement? To answer, select the appropriate options in the answer area.NOTE: Each correct selection is worth one point.Hot Area:
Box 1: Functionsmost functions and services that are stateless and do not have side effects.Box 2: ActionsActions can have side effects.Box 3: Complex types
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/use-web-api-actions
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.