When CRM plugin runs in response to a registered execution pipeline event, IPluginExecutionContext class contains information about the information related to the execution pipeline and entity business information. The context provides Input Parameters. It also provides Pre-Image and Post-Image, if these are configured during plugin registration. So what is the difference between Input Parameters and Pre-Image? When to use what?
Here is the difference between Input Parameters and Pre-Image?
Input Parameters property bag will only contain modified attributes during that transaction. However, Pre-Image/Post-Image will contain all those attributes which were selected while registering the plugin regardless attributes got modified or not.