Free PL-400 Exam Braindumps (page: 19)

Page 19 of 89

A multinational company requires that all phone numbers be standardized as country code + area code + phone number.

The application design team decides that a custom Power Apps component framework (PCF) control should be used to prompt users for an area code and to correctly format the phone number.

You need to get the list of valid area codes when a contact record is opened and before the user enters a new phone number.

You need to get the list of valid area codes when a contact record is opened and before the user enters a new phone number.

In which function should you call webAPI.retrieveMultipleRecords?

  1. updateView
  2. notifyOutputChanged
  3. getOutputs

Answer(s): A

Explanation:

The updateView method will be called when any value in the property bag has changed. This includes field values, data-sets, global values such as container height and width, offline status, component metadata values such as label, visible, etc.

Incorrect Answers:
notifyOutputChanged is a callback method to alert the framework that the control has new outputs ready to be retrieved asynchronously.

getOutputs is called by the framework prior to a component receiving the new data. Returns an object based on nomenclature defined in manifest, expecting objects[s] for the property marked as bound.


Reference:

https://www.inogic.com/blog/2021/01/what-is-popupservice-in-powerapps-component-framework/



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
var requestXhr = 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



Page 19 of 89



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

Jawad commented on August 30, 2024
Just passed this PL-400 exam.
Anonymous
upvote

Chiranthaka commented on September 20, 2023
very useful.
Anonymous
upvote

Jeya commented on September 13, 2023
its very useful
INDIA
upvote

Chiranthaka commented on September 20, 2023
very useful!
Anonymous
upvote

Chiranthaka commented on September 20, 2023
Very useful!
Anonymous
upvote

Chiranthaka commented on September 20, 2023
Very useful.
Anonymous
upvote

Jeya commented on September 13, 2023
It's Very Useful
INDIA
upvote

HEBA commented on August 06, 2023
MORE QUESTION
EGYPT
upvote

Gurpret commented on May 12, 2022
I just got a 82% on the exam. Passing is 75%.
UNITED STATES
upvote

Armeen commented on April 18, 2022
Did the online exam this morning and passed.
CANADA
upvote

Mona commented on July 06, 2021
I am posting to let everyone know I passed my certification exam ysterday.
INDIA
upvote

Eva commented on May 19, 2021
I found the practice questions very helpful.
NEW ZEALAND
upvote