Thursday, 14 January 2016

How to Set after events in eventreciver as synchronous

In SharePoint 2010 the after events i.e.  "-ed" events are by default asynchronous events, today i had a requirement in which i was updating a column in a list item and based on the same column the Designer work flow would send out emails.

My doubt here was will the start its execution fist or will the Event Receiver complete its execution first,

found a few good links here

http://sharepoint.stackexchange.com/questions/3147/execution-order-of-event-receivers-and-workflow-on-a-list
https://sharepoint.stackexchange.com/questions/50940/workflow-and-eventreceiver-execution-order?newreg=7022c3a963304c28a8fc9f733e4c7d02


SharePoint 2010 provides us with the option of explicitly changing such events to Synchronous

here is the post which i referred
https://blogs.technet.microsoft.com/stefan_gossner/2011/11/10/using-synchronous-after-events-e-g-itemupdated-in-sharepoint-2010/