SharePoint async event receiver method call behaviour

425 views Asked by At

In task list item added event i have two methods as below

method1() // execution time : 3 seconds method2() // execution time : 2 seconds

here before completing the method1() executing it automatically moving to the method2() and its started executing. somehow i can understand this is because of the async event. How to resolve this issue?

1

There are 1 answers

0
Naim Murati On

If its because of the async event you can make the after event synchronous (SP 2010 and up).

$receiver.Synchronization = "Synchronous"
$receiver.Update()

Check this for modifying event receivers with PowerShell.