Event Receiver VS Workflow

From my previous article to build SharePoint list event receiver and custom workflow in SharePoint Designer, I start questioning myself …

Which one to use based on business requirement?

I found good msdn article to explain it in more detail, so you could read there. In summary:

EventReceiverVSWorkflow

Event Receiver:

  • Can only be created in Microsoft Visual Studio.
  • Can be executed post or prior the event.
  • Support varieties different events include delete.

Workflow:

  • Can be created in SharePoint Designer, Microsoft Office Visio and Microsoft Visual Studio.
  • Can only be executed post the event.
  • Support manual started, item created and item updated.

What happen if I deployed both of them?

I’ve updated the workflow and event receiver solution from my previous article to concatenate the Report Comment column and I could see Workflow run first.

ProjectReports

Advertisements

Tagged: ,

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: