Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 5 question 22 discussion

Actual exam question from Microsoft's PL-400
Question #: 22
Topic #: 5
[All PL-400 Questions]

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than once correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You are developing a model-driven app for a company.
When you create a new Account record, you must automatically display a form to collect data that is needed to create a Contact record. The form must switch to the appropriate form layout based on the contact type.
You open the Contact form by using JavaScript. You pass the contact type information to the form by using the Xrm.Navigation.openForm function. An OnLoad event handler in the Contact form processes the data and shows only the appropriate sections of the form for the given contact type.
You need to configure the receiving form to accept the data parameter.
Solution: Export the solution, edit the customizations.xml, and add a querystringparameter element to the XML.
Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
nivanpee
Highly Voted 2 years, 10 months ago
Selected Answer: A
correct
upvoted 14 times
...
KucaStonojka
Most Recent 4 days, 22 hours ago
Selected Answer: B
Editing the customizations.xml file to add a querystringparameter element is not the correct approach for this scenario. The Xrm.Navigation.openForm method already provides a built-in way to pass parameters to a form through its formParameters property. This method allows you to programmatically send data to the receiving form without needing to modify solution files manually. Manually editing the customizations.xml file is not recommended or necessary for this use case, as it introduces complexity and risks breaking the solution.
upvoted 1 times
...
oleav
1 year, 7 months ago
Selected Answer: A
correct
upvoted 1 times
...
DimpleG
1 year, 10 months ago
Selected Answer: B
The solution you provided is not the correct way to pass data to a form when using the Xrm.Navigation.openForm function. Exporting the solution and editing the customizations.xml file is not a necessary step to pass data to a form. Instead, you can pass data to the form by including it in the options object that you pass to the openForm method. You can use the "entityId" or "data" properties in the options object to pass data to the form. Here is an example of how you would pass the contact type to the Contact form when opening it: var contactType = "individual"; var options = { entityName: "contact", data: { contact_type: contactType }, formType: 2 }; Xrm.Navigation.openForm(options);
upvoted 3 times
...
Kalimho
2 years, 4 months ago
in exam 2022.07.21
upvoted 1 times
...
BlueP
2 years, 5 months ago
Selected Answer: B
No, you pass the data as a query string parameter
upvoted 2 times
AADAdmin1
2 years, 4 months ago
There are two ways to specify which query string parameters will be accepted by the form: 1. Edit form properties in UI(to specify which query string parameters are allowed) 2. Edit form XML (export solution and modify customizations.xml file to specify which query string parameters are allowed)
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...