PL-400: Microsoft Power Platform Developer Exam - Dataverse Plug-in Execution Stages

Dataverse Plug-in Execution Stages

Question

You create a Dataverse plug-in.

Please select all execution stages of the plug-in event pipeline.

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

Correct Answers: B, C and E

Power Platform provides a variety of tools to extend the platform and user experience.

If you need to work with the Dataverse, you can use the Dataverse Web API and Organization service.

Or develop your business logic by using the Dataverse plug-ins.

You can use Data import, Synchronization, Virtual entities, Azure integration, and Webhooks for integration purposes.

Before creating the business logic using a code (the Dataverse plug-in), you should evaluate the application of the Dataverse declarative options for the business logic: use of business rules, Real-time workflows, actions, and Power Automate flows for your business requirements.

The extension of the business logic by a code depends on detecting the Dataverse's events.

The Event Framework provides this information to the declarative tools and registered extensions.

The Dataverse plug-in is a .Net assembly that can modify the platform behavior.

You can create your .Net project using a development environment, like Visual Studio or Visual Studio Code.

After compiling the project and creating an assembly, you need to register (map) the assembly classes to the Event Framework events (steps)

Then you register your business logic steps.

There are three stages in plug-in event pipeline execution: PreValidation - an initial stage before the main operation.

You can include the logic for canceling the event before the data transaction.

PreOperation - the next stage before the main operation but within the data transaction.

You can make changes to the data in operation.

PostOperation - the stage after the main operation and still within the data transaction.

You can call other actions using the Organization service before the message returns to the caller.

Your Dataverse plug-ins can act synchronously or asynchronously.

All other options are incorrect.

For more information about creating the Dataverse plug-ins, please visit the below URLs:

Sure, I'd be happy to explain the execution stages of a plug-in event pipeline in Dataverse.

A plug-in event pipeline is a sequence of stages that a plug-in can be registered to execute in. Each stage corresponds to a specific point in the execution process of a specific operation within the platform.

The available stages of a plug-in event pipeline are as follows:

  1. Pre-validation: This is the first stage in the event pipeline, and it occurs immediately after the platform receives a request. At this stage, the system performs some basic validation checks, such as verifying that the entity exists and that the request is well-formed.

  2. Pre-operation: This stage occurs after pre-validation and before the main operation is executed. At this stage, the plug-in can modify the input parameters or cancel the operation entirely.

  3. Post-operation: This stage occurs after the main operation is executed and before the changes are committed to the database. At this stage, the plug-in can modify the output parameters or perform additional operations.

  4. Post-operation (deprecated): This stage is similar to the post-operation stage, but it is deprecated and should not be used in new plug-ins.

  5. Post-validation: This is the final stage in the event pipeline, and it occurs after the changes have been committed to the database. At this stage, the plug-in can perform additional validation or cleanup tasks.

In summary, the available stages of a plug-in event pipeline are Pre-validation, Pre-operation, Post-operation, Post-operation (deprecated), and Post-validation.