Event receiver | Workflows |
1) Event receivers in SharePoint can be executed before or after an operation, like before adding an item or after adding an item. | 1) workflows can be executed only after the operation happed like after an item added to the list or after an item update. |
2) The event receivers in SharePoint 2013 or event receivers in SharePoint 2016 cannot be launched manually. They always attached to a SharePoint object which will run automatically when the event occurs. | 2) workflows can be started automatically as well as can be started manually also. |
3) You can cancel the operation like adding an item | 3) You cannot cancel the action as the item is already added. |
4) You can create an event receiver only in Visual Studio | 4) You can use any tool like SharePoint designer, Visual Studio, Visio, 3rd party apps, etc. |
5) No UI interaction | 5) Can use forms like initiation form, association form, etc. |
6) Can be run for a very short period of time. | 6) Can run for days, weeks or even years. |
7) Will not survive after server reboots | 7) Will survive after server reboots |
Monday, June 8, 2020
Difference between event receiver and workflow?
Ans
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment