exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 5 question 14 discussion

Actual exam question from Microsoft's PL-400
Question #: 14
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: In the form editor, add an event handler for the data parameter.
Does the solution meet the goal?

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

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DimpleG
Highly Voted 1 year, 2 months ago
Selected Answer: A
In order to pass the contact type information to the Contact form, you can use the Xrm.Navigation.openForm function which allows you to pass additional parameters along with the form. By adding an event handler for the data parameter in the Contact form, the form will be able to process the data and show only the appropriate sections of the form for the given contact type. This will meet the requirement of automatically displaying a form to collect data that is needed to create a Contact record and switch to the appropriate form layout based on the contact type. It's important to note that the event handler for the data parameter should be added in the form editor, and it should be able to process and handle the data passed to it.
upvoted 6 times
...
itmaxuser
Most Recent 6 days, 5 hours ago
Selected Answer: B
Access Parameters on the Target Form On the receiving form, you need to write JavaScript to read those parameters during form load. Typically, this goes in a form OnLoad event handler:
upvoted 1 times
...
Juan0414
1 month, 2 weeks ago
Selected Answer: B
For me the wording in the solution does not have any sense, as you can not add an event handler "FOR" the data parameter. You can say something like "add an event handler for the OnLoad event that processes the data parameter". So, for me is No
upvoted 2 times
...
OlenaChep
1 month, 3 weeks ago
Selected Answer: B
Xrm.Navigation.openForm(entityFormOptions, formParameters).then(successCallback, errorCallback) According to documentation there are two ways to specify which query string parameters will be accepted by the form: Edit form properties and Edit form XML. https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/configure-form-accept-custom-querystring-parameters
upvoted 1 times
...
Juan86
7 months, 1 week ago
Selected Answer: A
Answer:A. Since we can use the event handler to communicate the data parameter info
upvoted 1 times
...
HasanAamir11
7 months, 2 weeks ago
Selected Answer: B
The given answer No is correct
upvoted 2 times
...
jkaur
8 months ago
No should be
upvoted 2 times
...
Kalimho
1 year, 9 months ago
in exam 2022.07.21
upvoted 2 times
...
L_2020
1 year, 9 months ago
Makes no sense to pass an event handler for the data parameter to accept the data parameter, we could use the form properties parameters here instead
upvoted 4 times
...
Uiey
1 year, 10 months ago
Selected Answer: B
Yes, I guess the given answer is correct. You don't want to pass an event handler for the data parameter.
upvoted 1 times
...
Whataboutno
2 years, 1 month ago
Is it correct?
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago