Difference between workflows and event receivers in SharePoint 2013

Difference between workflows and event receivers in SharePoint 2013

Here we will discuss about workflows and event receivers in SharePoint 2013. Both worflow and event receivers are very important in SharePoint and it is important to know which one to use when. It is good to know difference between event receiver and workflow in sharepoint 2013.

– Event receivers in SharePoint can be executed before or after an operation, like before adding an item or after adding an item. On the other hand workflows can be executed only after the operation like after an item added to the list or after an item update.

– The event receviers in SharePoint 2013 or event receivers in SharePoint 2016 can not be lauched manually. They always attached to a SharePoint object which will run automatically when the event occurs. But workflows can be started automatically as well as can be started manually also.



Difference between workflows and event receivers in SharePoint 2013
Difference between workflows and event receivers in SharePoint 2013

– By using an even receiver you can there is a chance that you can cancel the operation but in workflows you can not cancel the operation because already the item has been created.

Also read SharePoint 2013 tutorial: Retrieve site workflow id using JavaScript Object model in SharePoint Online

– A SharePoint workflow can be started like manually, when item is added, an item updated etc but an event receiver can be in action in various events which includes delete item also.

– You can develop a workflow using SharePoint designer, visual studio, visio or by using any other 3rd party tool also. But you can develop event receiver by using visual studio only.

– You will not have any UI interaction in case of event receiver, but you can use various forms like initation form association forms in workflow for user interaction. Also SharePoint workflow provides a Workflow History to log information by default, but there is no such feature in case of event receivers.

– Event recivers will not survive after server reboots, where are SharePoint designer workflows does survive.

– Event receivers are running in a particular Web front end server, so if something goes wrong in the WFE, it may end but workflows will not.

– Event receivers can be run for very short period of time where as SharePoint workflows can run even for days, week, months or even for years.

If you got this kind of requirement, then first check if the requirement is to cancel the process then you should use event receiver. On the other hand if your business requirement wants user inputs then you should choose for workflow.


About Bhawana Rathore

Hello Everyone!! I am Bhawana having about 8+ years of SharePoint experience as well as in .Net technologies . I have worked in all the versions of SharePoint from wss to Office 365. I have good exposure in Customization and Migration using Nintex, Metalogix tools . Now exploring more in SharePoint 2016 :) Hope here I can contribute and share my knowledge to the fullest. As I believe "There is no wealth like knowledge, and no poverty like ignorance"

View all posts by Bhawana Rathore →

Leave a Reply

Your email address will not be published. Required fields are marked *