exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 4 question 19 discussion

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

You create a form in a model-driven app that uses data from the Lead table in a Microsoft Dataverse instance. You add a business rule to the Lead table. The business rule displays an error if the email address is null. You set the scope for the business rule to All Forms.
You configure a Power Apps portal by using the same Microsoft Dataverse instance. You create a web page by using the Lead form.
You need to ensure the same logic is applied on the Power Apps portal page.
What are two possible ways to achieve the goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.

  • A. Deactivate the business rule. Change the scope for the rule to Table and then reactivate the rule.
  • B. Replace the business rule logic with a Microsoft Power Automate cloud flow by using the Dataverse When a row is added, modified or deleted trigger.
  • C. Extend the webFormClientValidate JavaScript function to replace the business rule logic. Edit the code in Power Apps Studio. Add the function in a <script> block.
  • D. Create a JavaScript web resource and replace the business rule with a JavaScript function. Add an OnSave event handler to the Lead form.
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

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
C2StudyClub
Highly Voted 2 years, 1 month ago
Selected Answer: AC
A & C would work.
upvoted 12 times
...
Juan0414
Most Recent 1 month, 4 weeks ago
Selected Answer: AC
A. For it to work on Power Pages the scope need to be set as "Entity (Table)" C. Based on this: https://learn.microsoft.com/en-us/power-pages/configure/add-custom-javascript The thing for D is that I don't think the event handler should be On Save.
upvoted 1 times
...
4e8b388
6 months ago
Selected Answer: AC
A and C is the correct answer
upvoted 1 times
...
At09
1 year, 1 month ago
Only A and C would make sense
upvoted 2 times
...
MikeAWS
1 year, 1 month ago
BD are correct IMO! Here are the reasons why: Option A: Deactivating the business rule and then changing the scope for the rule will NOT work. The business rule will still be active in the model-driven app, but it will not be applied to the Power Apps portal page. Option C: Extending the webFormClientValidate JavaScript function will NOT work. This function is used to validate the form before it is submitted. It is not used to validate the data after it has been submitted.
upvoted 1 times
...
uberlord
1 year, 2 months ago
Selected Answer: AB
AB are the only ones to offer complete solutions, CD will only affect a portal or MD. I still have misgivings about B though
upvoted 1 times
...
AndreiAndreiG
1 year, 4 months ago
Selected Answer: AD
A & D are correct imo
upvoted 3 times
...
DimpleG
1 year, 9 months ago
Selected Answer: BD
B. Replace the business rule logic with a Microsoft Power Automate cloud flow by using the Dataverse When a row is added, modified or deleted trigger. D. Create a JavaScript web resource and replace the business rule with a JavaScript function. Add an OnSave event handler to the Lead form.
upvoted 2 times
hikmatune
1 year, 9 months ago
You cannot use power automate for real time validations on the form.
upvoted 9 times
...
...
diotmac
2 years, 1 month ago
Selected Answer: AB
Only A and B would work. C - Only affects power apps portal D - Only affects Model driven App
upvoted 1 times
...
Couchiman
2 years, 1 month ago
A and C https://docs.microsoft.com/en-us/power-apps/maker/portals/configure/add-custom-javascript
upvoted 4 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