Study FAQ
How should I register a Dataverse Update plug-in so it runs on the intended writes?
Also asked as 2
- How do I configure the message, filter and order for a Dataverse Update plug-in?
- What registration settings determine when a Dataverse Update step actually runs?
Answer
Register the assembly and its Update step on the exact table, then match stage, mode, image alias and execution identity to the rule. For a field-dependent Update step, filter on the relevant attributes. Dataverse tests whether the request contains a filtered attribute, so a request can trigger the step even if the value stays the same. Leave the primary key out of the filter. Register a plug-in
Use explicit execution order when steps depend on each other. A validator that depends on another step's normalization must run after it. Test an unrelated Update if another extension can change the guarded field during that operation. A filter based on the incoming payload can miss a write path if its assumptions differ from the client or extension chain. If your own code changes the incoming row in PreOperation, set its Target attributes directly. A second same-row Update creates another pipeline execution. Keep the rule safe on legitimate nested requests and avoid treating depth or internal parent-context details as a business condition. Dataverse execution context · Dataverse event pipeline
Add the assembly and the registered steps to the solution, then inspect them in the destination environment. Verify valid and rejected writes through each supported client and message, including a patch with an unchanged filtered value, an unrelated patch and a legitimate nested write. A registration that protects Create and Update needs separate coverage analysis for write paths with different messages. Plug-in registration and solution assets
Full explanation
AB-400: Dataverse Plug-ins and the Event Execution Pipeline
Study guide · AB-400
Read the full explanation