PL-400 · Question #332
You are creating a plug-in for an app that helps government employees get a proof of vaccination card. You must add the following information to a vaccination record before a proof of vaccination…
The correct answer is D. PreOperation. To add required information to a vaccination record before it is created in Dataverse, the plug-in must be registered to execute in the PreOperation stage of the event pipeline.
Question
Options
- APreValidation
- BPostOperation
- CMainOperation
- DPreOperation
How the community answered
(55 responses)- A5% (3)
- B2% (1)
- C11% (6)
- D82% (45)
Why each option
To add required information to a vaccination record before it is created in Dataverse, the plug-in must be registered to execute in the PreOperation stage of the event pipeline.
PreValidation is the earliest stage, primarily for validating data or cancelling operations, not for modifying the entity's data prior to creation.
PostOperation occurs after the main database transaction has completed, making it too late to modify data before the record's initial creation.
MainOperation is the core platform operation itself (e.g., actual database write), where custom plug-in code cannot directly execute as a separate step in the event pipeline.
The PreOperation stage allows custom logic to modify data before the main platform operation (like record creation) executes, but after initial validation. Registering the plug-in at this stage ensures that the vaccination type, date, and administrator's name are added to the record before it is officially committed to Dataverse.
Concept tested: Power Platform plug-in execution pipeline stages
Source: https://learn.microsoft.com/en-us/power-apps/developer/data-platform/event-framework
Community Discussion
No community discussion yet for this question.