Dynamics 365 plugin development – How to avoid infinite loops
In some scenarios, it is necessary to develop a custom plugin assembly that is called from Dynamics 365 Workflow. Within the plugin source code, there are different ways to handle the data that is passed to the plugin by the execution context. However, if the entity object fetched from the plugin context is used to update the entity back to Dynamics, caution should be taken to avoid infinite loops in the workflow that got triggered in the first place.
In this screen cast video, I show you this scenario in detail and how to avoid the infinite loop.