Difference between Pre-validation and Pre-operation in Dynamics 365 Plugins

| Ijlal Monawwar

In Microsoft Dynamics 365, plugins are custom pieces of code that can be registered to execute in response to specific events in the system. Plugins can be registered to execute in one of two stages: pre-validation and pre-operation. Some folks find it difficult to distinguish between the two stages, so here is a quick read about their core differences and their example applications.

Pre-validation stage: The pre-validation stage occurs before the main operation is executed. This is a good time to perform any necessary validation or checking of input data to ensure that the main operation will be successful. For example, you might use the pre-validation stage to check that all required fields have been filled out or to ensure that the user has sufficient permissions to perform the operation.

Pre-operation stage: The pre-operation stage occurs just before the main operation is executed. This is a good time to perform any necessary setup or preparation for the main operation. For example, you might use the pre-operation stage to create a record in a custom entity or to retrieve additional data that will be needed for the main operation.

It's important to note that plugins registered for the pre-operation stage will execute after plugins registered for the pre-validation stage. This allows you to perform any necessary validation or checking before the main operation is executed.

Join us next time, as we continue our journey of learning canvas apps.Click here to learn more about Imperium's Power Apps Services. We hope this information was useful, and we look forward to sharing more insights into the Power Platform world.


M
Chief Architect, Founder, and CEO - a Microsoft recognized Power Platform solution architect.

About The Blog

Stay updated with what is happening in the Microsoft Business Applications world and initiatives Imperium is taking to ease digital transformation for customers.


More About Us

We provide guidance and strategic oversight to C-Suite and IT Directors for on-going implementations. Feel free to give us a call.

1 331 250 27 17
Send A Message

Ready to Start?

Get a personalized consultation for your project.

Book a Meeting