PL 400 : implement business logic by using pre-images and post-images (Create a plug-in)

 The Plugin execution framework is closed environment, so it works with certain rules and conditions. Pre-image and Post Image are special concept for plugin developer. In the several business conditions, developer needs manipulate the pre and post values during the event execution framework. Images are snapshots of the table's columns, before and after the core operation system.



Pre-Image : A pre-image is a snapshot of the table's columns before the core operation.


Post-Image: A post-image is a snapshot of the table's columns after the core operation.


Images are useful for update operation, they help us determine the original value of a field before a user fired an update operation. Microsoft Dataverse populates the pre-entity and post entity images based on the security privileges of the impersonated system user. Only table columns that are set to a value or are null are available in the pre or post table images.



Comments

Popular posts from this blog

Effective Strategies for Debugging Plugins in Dynamics CRM

Connecting the Dots: FetchXML and Web API Integration in Dataverse

Exploring the Differences: Managed vs. Unmanaged Solutions in Dynamics CRM/Dataverse

L1, L2, and L3 Support Explained

Model-Driven Apps Command Bar: A Guide to PrimaryControl and SelectedControl

How to Write and Understand a Dynamics CRM Plugin

Stop Struggling with Plugins: Learn IOrganizationService the Smart Way

Architect’s Blueprint: How IPluginExecutionContext Powers the Plugin Pipeline

Microsoft Dataverse : A Complete Storage

How Every Plugin Action Travels Through Request, Service, and the Pipeline