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

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

PCF vs. Web Resources: Choosing the Right Extensibility Tool for Dataverse

Effective Strategies for Debugging Plugins in Dynamics CRM