Workflow is cherished feature available in Microsoft dynamics CRM, which lets users to configure series of functions or methods which called steps to perform in a flow. Flow can be changed based on conditional values or inputs. It works like data flow diagram presented in below image.
Workflows are categorized in two forms in dynamics CRM –
1. Asynchronous workflows
2. Real Time work flows or synchronous workflows
Asynchronous is basically something which you don’t except to complete instantly and you expects to run behind the seen. Same scenario followed in Microsoft Dynamics Asynchronous workflows.
Asynchronous work flow needs a windows service as a processer. Window Service named Microsoft Dynamics Asynchronous Processing Service must be running to run these workflows.
These workflows might take some time to start and run in background is good option for Asynchronous workflows.
Asynchronous workflow mainly used to update entity fields or send email on certain condition which you don’t except to complete on the same time.
This is called synchronous work flow as well, this is not recommended workflow as it holds all other dynamics CRM processes till that it moved to finish. But in some scenario it’s required.
To maintain data integrity intact, Microsoft Dynamics CRM supports real time workflows which executed in synchronous mode with transaction aware operation.
Real-time workflow triggered on an event and there is no delayed occur; it can be also configured to run on demand.