Very Often I found during code reviews the most common mistakes new programmers commit during plugin development in CRM is usage of images at wrong places. so I thought of writing the same here, may be it helps someone.
first we should understand what are Pre and Post entity images:
PreEntityImages and PostEntityImages contain snapshots of the primary entity's attributes before and after the core platform operation. Microsoft Dynamics CRM populates the pre-entity and post-entity images based on the security privileges of the impersonated system user. You can specify to have the platform populate these properties when you register your plug-in. The entity alias value you specify during plug-in registration is used as the key into the image collection.
before using the images we should know when they are available. For example, only synchronous post-event and asynchronous registered plug-ins have PostEntityImages populated. In addition, the create operation does not support a pre-image and a delete operation does not support a post-image.
Hope it is helpful.
Happy Coding.
1 comment:
There are some fascinating deadlines on this article however I don’t know if I see all of them center to heart. There's some validity however I will take maintain opinion till I look into it further. Good article , thanks and we want more! Added to FeedBurner as nicely online casino
Post a Comment