Real-time workflows were introduced in Microsoft Dynamics CRM 2013. They provide us with the flexibility to run our business logic before and after the core operation just like plug-ins. It also executes logic in transactions so, in the case of failure, all the modifications will be rolled back. They also introduced some new steps that are not available in asynchronous workflows.
Let's take an example. We want to implement a business requirement where, before a book can be issued, we want to validate the book inventory. So we want to check if the quantity on hand is greater than 0; if it is equal to 0, we want to show an error message to the user. This requirement can't be implemented using asynchronous workflows because we need to show an error message to the user and also need to check the quantity on hand value quickly. To implement this requirement we need to create a real-time workflow. Perform the following steps to set up a real-time workflow:
Navigate...