Capture field changes in a plugin

The following code captures record updates in a Dynamics 365 CE plugin, and stores this in the description field.