Free PL-400 Exam Braindumps (page: 47)

Page 47 of 89

You have the following code:



You have a contact record that uses the GUID 991bf2fd-d40c-4752-9984-26b7c0455b69.
You need to assign the contact record as the primary contact for an account when you create the account.
Which two code segments can you use? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  1. var data = { "name": "Contoso account", "primarycontactid": { "logicalname": "contact", "id": "991bf2fd-d40c-4752-9984-26b7c0455b69" } };
  2. var data = { "name": "Contoso account", "primarycontactid@odata.bind": "/contacts(991bf2fd-d40c-4752-9984-26b7c0455b69)" };
  3. var data = { "name": "Contoso account", "primarycontactid@odata.context": "/contacts(991bf2fd-d40c-4752-9984-26b7c0455b69)" };
  4. var data = { "name": "Contoso account", "primarycontactid": "/contacts(991bf2fd-d40c-4752-9984-26b7c0455b69)" };

Answer(s): A,B

Explanation:

B: To associate new table records to existing table records, set the value of single-valued navigation properties using the @odata.bind annotation
Example:
var data =
{
"name": "Sample Account",
"primarycontactid@odata.bind": "/contacts(465b158c-541c-e511-80d3-3863bb347ba8)"
}
A: For mobile clients in the offline mode, you cannot use the @odata.bind annotation, and instead have to pass a lookup object (logicalname and id) pointing to the target record. var data =
{
"name": "Sample Account",
"primarycontactid":
{
"logicalname": "contact",
"id": "465b158c-541c-e511-80d3-3863bb347ba8"
}
}
Note Syntax:
Xrm.WebApi.createRecord(entityLogicalName, data).then(successCallback, errorCallback); entityLogicalName: Logical name of the table you want to create. For example: "account".
Data: A JSON object defining the columns and values for the new table record.


Reference:

https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-webapi/createrecord



DRAG DROP (Drag and Drop is not supported)
A company has a model-driven app.
A form that validates the date entered requires a custom button. The button must be available only under certain conditions.
You need to define the CommandDefinition in the RibbonDiffXML to meet the conditions for the button.
Which elements should you use? To answer, drag the appropriate elements to the correct conditions. Each element may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: Display Rule
When configuring ribbon elements, you can define specific rules to control when the ribbon elements will display.

Box 2: Action
Define the actions to be performed by a command bar or ribbon control in a <CommandDefinition> element together with rules that control whether the control is enabled or visible in the ribbon.

Box 3: Enable Rule
When configuring ribbon elements, you can define specific rules to control when the ribbon elements are enabled.


Reference:

https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/define-ribbon-enable-rules
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/define-ribbon-display-rules
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/define-ribbon-actions



An organization uses Dynamics 365 Sales.
You plan to use a JavaScript web resources file in the Accounts form. The file has a dependency on two image web resource files and on the custom field new_placeofbirth in the Account entity.
You need to add the dependencies for the JavaScript file.

Which three actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  1. Open the web resource file, add the two image web resources to the dependency's lists, and then add the custom field new_placeofbirth to the dependency's list.
  2. From Settings, select Customizations and then select Customize the System.
  3. In the Account form, select Form Properties, select Non-Event Dependencies, and then add the custom field new_placeofbirth.
  4. Select Account, select Forms, and then select the Account form.
  5. From Web Resources, select the JavaScript file for the Account form and then select the JavaScript file.
  6. In the Account form, select Form Properties and add the primary JavaScript file and the other two images web resources in Form Libraries.

Answer(s): A,B,E



HOTSPOT (Drag and Drop is not supported)
You open a canvas app in edit mode. A warning message displays as shown in the graphic.



Use the drop-down menus to select the answer choice that answers each question based on the information presented in the graphic.
NOTE: Each correct selection is worth one point.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: Navigate to Connections and add a new connection
Error message: This app is using a connector for the Common Data Service will not be supported past Oct 1, 2020.
To convert your app that uses the Common Data Service 365 connector, you'll need to remove and add the connections to your data sources.
Box 2: Gallery1


Reference:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/use-native-cds-connector



Page 47 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