exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 7 question 27 discussion

Actual exam question from Microsoft's PL-400
Question #: 27
Topic #: 7
[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 one 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.

A company requires custom validation when users save form records that use a synchronous plug-in.

If validation fails, a message that explains how to resolve the issue must be displayed on the form to the user.

You need to implement the custom validation.

Solution: Throw an InvalidPluginExecutionException with the message.

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Juan0414
3 months, 2 weeks ago
Selected Answer: A
https://learn.microsoft.com/en-us/troubleshoot/power-platform/dataverse/plug-in-execution/dataverse-plug-ins-errors#unhandled-exception-in-the-plug-in
upvoted 1 times
...
pey
7 months, 3 weeks ago
Selected Answer: A
This option ensures that if validation fails, an exception is thrown with a descriptive message, which will be displayed to the user directly on the form. It provides a clear indication of what went wrong and how to resolve the issue, enhancing the user experience and aiding in resolving validation errors effectively.
upvoted 2 times
...
hai297
8 months, 3 weeks ago
Selected Answer: A
A, I've tested it in Plugin code
upvoted 1 times
...
Jorgegf97
12 months ago
Selected Answer: A
Correct answer is A
upvoted 2 times
...
NNNT
1 year ago
The Correct Answer Should be A. Yes To achieve the goal of displaying a user-friendly message on the form when validation fails, you should consider using the OrganizationServiceContext.ThrowInvalidPluginException method with a custom error message.
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 ...