exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 8 question 13 discussion

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

DRAG DROP -
You are creating a plug-in for a Power Apps app for the human resources department at the company. The app will be used to process new employees and help employees apply for an identification card.
You have the following requirements:
✑ Applications must not be marked as complete if the employee has not completed mandatory drug screening.
✑ Add logic that stores the name of the human resources team member that approves an application. This step must be completed before an ID card is created for the applicant.
✑ Successful validation and ID card printing.
You need to configure the event pipeline.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: PreValidation -
Applications must not be marked as complete if the employee has not completed mandatory drug screening.
If you want to change any values for an entity included in the message, you should do it here.
Pre-validation stage executes outside Database Transaction which will not rollback the entire operations written in the plugin if there is any runtime error occurs in one operation. This provides an opportunity to include logic to cancel the operation before the database transaction.

Box 2: PreOperation -
Add logic that stores the name of the human resources team member that approves an application. This step must be completed before an ID card is created for the applicant.
Pre-Operation stage executes inside database transaction due to which any runtime error occurs in a single operation in the plugin will rollback entire operations which are part of the plugin.

Box 3: PostOperation -
Successful validation and ID card printing.
Post Operation - Plug-ins registered in this stage are executed within the database transaction. Plugin will run after the values have been inserted/changed on the database
Reference:
https://softchief.com/2021/03/23/prevalidation-v-s-preopration-in-dynamics-365/ http://mscrmtechie.blogspot.com/2016/02/plugin-stages-pre-validation-pre.html

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, 3 weeks ago
Correct! PreVal - Needs to be cancelled if validation is not met PreOp - Modify before saving PostOp - Actions after record saved
upvoted 1 times
...
loftuscheek
4 months ago
correct PreValidation: Perform high-level checks or validations before the main operation begins. Mandatory drug screening is completed (PreValidation) PreOperation: Make final modifications or checks before the record is saved. The application is reviewed and approved (PreOperation) PostOperation: Take actions that rely on the successful completion of the main operation. The ID card is printed (PostOperation)
upvoted 2 times
...
FCTopics
7 months, 1 week ago
Correct answer
upvoted 2 times
...
amarrrin
1 year, 3 months ago
ChatGPT tells: Mandatory drug screening is complete - PreValidation You want to check if the mandatory drug screening is complete before allowing any further processing of the application. This should be checked as early as possible in the event pipeline to prevent unnecessary processing. The application is reviewed and approved - PostOperation You want to store the name of the HR team member that approves an application. This should be done after the main operation has been executed, which is likely updating the application record with the approval information. The ID card is printed - PostOperation After the application has been reviewed and approved, the ID card printing should occur as part of the final step. This should also be done as a PostOperation to ensure that the ID card is only printed if the application has been successfully reviewed and approved. So, the correct order is: PreValidation: Mandatory drug screening is complete PostOperation: The application is reviewed and approved PostOperation: The ID card is printed
upvoted 1 times
NyarukouSAMA
1 year, 3 months ago
It is said the operation should be performed before the ID card is created, which means before the MainOperation. Obviously, the second one should be PreOperation.
upvoted 1 times
...
HiJaak
1 year, 3 months ago
Well... ChatGPT failed on the majority of my "renewals"... so I would't trust all of its results... 😜 Besides, in the link prodided https://softchief.com/2021/03/23/prevalidation-v-s-preopration-in-dynamics-365/ - "PreOperation" is used "If you want to change any values for an entity included in the message". "PostOperation" is used only to change the returned message. So the original results are correct: PreValidation PreOperation PostOperation
upvoted 12 times
...
...
MikeAWS
1 year, 3 months ago
1. PreOperation 2. PostOperation 3. PostOperation
upvoted 1 times
Juan86
1 year, 3 months ago
Could you explain a little bit the resons why you chose those? Otherwise its like a guess
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 ...