0

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?

Ayyappan Anbalagan
  • 11,022
  • 17
  • 64
  • 94

1 Answers1

1

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.

Naim Murati
  • 373
  • 1
  • 10