Free PL-400 Exam Braindumps
Microsoft Power Platform Developer Questions 243–247 (page: 20)

Updated On: 10-Feb-2026

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:

  1. See Explanation section for answer.

Answer(s): A

Explanation:


Box 1: Yes
getFormTyp gets the form type for the record. Form type 2 is Update.
Note: Syntax: formContext.ui.getFormType();
Return Value
Type: Number

Description: Form type. Returns one of the following values

RETURN VALUE
Value Form type
0 Undefined
1 Create
2 Update
3 Read Only
4 Disabled
6 Bulk Edit

Box 2: Yes
Xrm.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: No
It will displayed even if the update fails.


Reference:

https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-ui/getformtype

https://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:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: No
parseFloat will return 'NaN' if it's not a number (null and undefined are NaNs). Box 2: No
Box 3: Yes
Session.userLCID is the Locale ID for the ASP application.


Reference:

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:

  1. See Explanation section for answer.

Answer(s): A

Explanation:


Box 1: Yes
Problem patterns: Web-use-async
There 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 call
varrequestXhr = 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: No
No debugger statement in the code, so web-remove-debug-script (avoid including debug script in non- development environments) does not apply.


Reference:

https://docs.microsoft.com/sr-cyrl-rs/powerapps/developer/model-driven-apps/best-practices/business-logic/ interact-http-https-resources-asynchronously
https://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.

  1. Web pages
  2. Web resources
  3. Webforms
  4. Entity lists

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:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: Functions
most functions and services that are stateless and do not have side effects.

Box 2: Actions
Actions can have side effects.
Box 3: Complex types


Reference:

https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/webapi/use-web-api-actions



Viewing page 20 of 80
Viewing questions 96 - 100 out of 429 questions


Post your Comments and Discuss Microsoft PL-400 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!