I hope somone can help me with a problem I been trying to deal with over some time now. I have a create plugin and a update plugin. For testing purposes my create plugin (Pre-Operation) does a simple calculation and puts the result on a field after save.
My update-plugin works fine when I register it on the pre-operation and change the fields I have my logic for. HOWEVER if I only change one of those fields (or get other fields dirty on the form)I get an error that the key was not present in the dictionary. I have done my research and seen that you do a check between Pre and Post Entity Image to check what fields have been updated and which not. But what I'm confused about is when I do this I need to regrister my update plugin on Post-opertion, which results to my update not working anymore and if I do service.Update(entity) at the end of my code it gives me another error of infinite loop. On my Update plugin I have made sure that I registerd two images (Pre and Post). I would appreciate if someone can advice me, how to do the checks between pre and post images?