Please feel free to post your comments/feedback into my blog, I’ll be more than happy to assistant you.
Step 1Open Visual Studio 2013 and create an Empty Share Point Project. Go to the Employee Documents library and update the document. Go to Employee Documents library and delete the document. The deleted document log will show as in the following: Summary In this article we saw have how to create an event receiver for a Document Library and custom list level in Share Point 2013.
Then select an events as in the following and click Finish. Here I'm trying to update a Share Point list based on file changes happening to a separate Share Point Document Library. An Employee Documents Document Library has the following columns: Step 9Build and deploy the solution. Go to the Employee Documents Document Library and add a new document.
We'll create a class called Disabled Events Scope: This class is simple and to the point.
We inherit SPItem Event Receiver and IDisposable, SPItem Event Receiver will give us access to the base properties in the event receiver and IDisposable will give us a Dispose method (which comes in handy in a moment).
This will most likely work for 99.9% of all implementations, but why take the risk.
There may be other code working some magic here as well, and by saving off the value and setting it back you do not interfere with anything else that may be going on. All we need to do is wrap our previous code in a Using statement: Viola! Update() fires, we are inside the scope of our Disabled Events Scope class which has disabled event firing.