0
votes
0answers
5 views

Document Library event reciever only firing for newly created libraries

I have added a new event reciever which is supposed to work on all the document libraries present in the site. Now the problem is that it is only working for the libraries that are created after the ...
1
vote
2answers
26 views

how to read data from a document when uploaded to library?

Suppose we upload a word doc to a document library. Is there any way we can pick some data from the document and auto generate the columns of the library? One way would be to use item added event ...
3
votes
1answer
167 views

Is it possible to wait until my file is uploaded in document library?

I have created a document library and I have applied an Item Added event receiver to that library which will copy that file to another library and I have added that library as a mapped drive to my ...
0
votes
1answer
113 views

When item added event receiver fires if we upload file using explorer?

I have a document library in which I have attached two event receivers. Item Added. Item Updated. My event receiver definition is: <Receiver> ...
2
votes
1answer
39 views

How to rename file after saving from Word

I need to rename document after creating from MS Office Word. I've created EventReceiver OnItemAdded where I am trying to change "FileLeafRef" field: public override void ...
2
votes
1answer
32 views

Content type eventhandlers gets bound to list

I have a custom parent content-type on which I apply 6 event-handlers. I then have 24 content-types based off of the parent content-type - thus inheriting the 6 event-handlers. - All defined in XML I ...
2
votes
0answers
60 views

Is there a way programmatically I can check if the user wants to upload a file as new version?

We have a document library and we added an event receiver to move the files out of the root folder accordingly to our business requirements. I am having issues now because I am trying to check if the ...
1
vote
0answers
27 views

Prevent Metadata from copying when using “Send To” feature

I have an event receiver to handle items being added to a document library that sets the item's metadata based on various parameters. When in a Document Library I select an item and use "Send To > ...
1
vote
1answer
83 views

How to create an Excel Document when adding a Library Item?

Hope you can help me with this question: I have a SP Library, where the user should type info into some fields (Text, Publishing HTML, Datetime). So, I'm wondering if it's possible to use that info ...
0
votes
1answer
433 views

Unable to get event receiver to work with Document Library

I have created a Document Library named Attachments Library. In the library I have created an additional mandatory column of File Details. I intened to use this field to capture some metadata about ...
0
votes
0answers
105 views

Lock error when updating new document in ItemAdded

I'm trying to update an item when it is added to a document library. I have an EventReceiver on my document library and I am using the ItemAdded event. I am using the New Document button to create a ...
1
vote
0answers
92 views

Copy File Name to Title Field in Asset Library

I need to put together an Event Receiver on Asset Libraries which copies the File Name of the asset being uploaded to the Title Field of the list. I am currently using the following code. The ...
0
votes
1answer
151 views

Retrieve previous file contents on ItemUpdated

I am writing an event receiver on a document library. I need to get the previous version of the document, before the upload. BeforeProperties unfortunately does not give me the SPFile, only the ...
2
votes
0answers
480 views

Event Receiver update document content on ItemUpdating

I am trying to update a document in the item updating event receiver, but I keep getting the error: "The file IOF/This is a.docx has been modified by ....." I have the following code in my SP 2013 ...
0
votes
1answer
144 views

Custom Event Reciever For Document Library(sharepoint 2010)

I have a month column which is a choice column in my document library in the format specified below.. For eg. Jan 2013 I have the following requirements 1. The month dropdown should always have only ...
1
vote
2answers
2k views

Cannot associate event receiver with a particular document library

I am trying to develop an Event Receiver for a document library titled Temporary. I have modified the Elements.xml document to look like this: <?xml version="1.0" encoding="utf-8"?> ...
0
votes
1answer
361 views

ItemUpdating event not firing on folder rename w/ Windows Explorer

I have an Item Updating event receiver that needs to fire when a document library folder is renamed. Everything works perfect when a user renames the folder with the SharePoint UI. However, if ...
0
votes
1answer
143 views

Do event receivers have a file handling limit?

I created an event receiver inheriting from SPItemEventReceiver for document libraries that moves files to specific folders and changes some metadata columns that I've added to them. I created a ...
2
votes
1answer
486 views

Why Item Updated and Item Added trigger together when we add a item to list (document library)

I have gone through hundred of articles over months but never understood as what could be the reason Item Updated and Item Added trigger together when we upload a item, even though if you try ...
0
votes
1answer
364 views

Move files to a folder using event receiver

Hi I have an Infopath form Library and i want to add the forms that are being submitted to a folder in the same library according to the information I need to do this using an event receiver. Can ...
3
votes
1answer
110 views

Document in library: newly created from template OR uploaded?

Can I programmatically detect if a document in a library is uploaded or created with the "new document" button? When a user uses the "new document" button, my ItemUpdated event receiver doesnt fire, ...
1
vote
0answers
89 views

Email not received in Document Library when Event receiver Added [closed]

Email not received in document library when Email event receiver is added to this library..
1
vote
1answer
40 views

An event to be fired on editing a file

As title says, I need an event to fire when a listitems file has been edited. I appreciate this isn't as simple as it having it's own event, which is why I've tried to make use of the itemupdating ...
1
vote
1answer
199 views

How to prevent document editing and properties updating

I need to be able to prevent the document in document library to be edited and it's properties updated when the custom document property DocState has a value Reviewed. Should I use document library ...
0
votes
2answers
2k views

New EventReceiver events not firing

I have an event receiver written by someone else. It originally came with events for ItemCheckingIn and ItemCheckedIn, but we needed something to handle simple metadata updates, too. Since those ...
1
vote
1answer
1k views

Unable to attach an SPEmailEventReceiver to my list

I'm trying to link an SPEmailEventReceiver to my document library.. First of all I created the EventReceiver using the Visual Studio 2010 Add -> Event Receiver -> List Email Events -> Document ...
0
votes
1answer
602 views

How to enable an Event Handler to intercept upload from email in document library

I have a Document Library with an email associated with the OOTB feature. When I send to the library an email with some attachments, every attachment is stored with one of the OOTB methods (divided in ...
1
vote
0answers
103 views

How do I prevent Office applications to update one of my SPListItem properties?

I have a document library in SharePoint whith a custom content type. There is one custom field that is set by an item added event receiver each time a new document is uploaded. My problem occurs when ...
0
votes
2answers
500 views

Differentiate in ItemUpdated (ER) if file was edited or overwritted

I've an ItemUpdated Event Receiver, and I need to make different operations depending if the file was updated throw UI or overwritted. Is there any internal field that reflects this 2 different ...
1
vote
1answer
1k views

EventReciever to change permissions

I am trying to create an event reciever on a document library that on creation it removes all permissions and gives the author contribute writes. All other users get nothing. I have the following ...
0
votes
1answer
601 views

Stop EditForm.aspx redirecting to deleted list item

Scenario: Adding a document to document library, then copying it to another doc lib and then deleting it using the ItemUpdated event receiver. Problem: The popup window (EditForm.aspx) usually closes ...
2
votes
2answers
1k views

ItemAdding not firing when “Overwrite existing files” is checked for SharePoint Document library

I need to copy Existing file to A folder("Archive") while another file is uploaded with same file name to the document library. Ex I already have a filename "example.txt" in a document library. Now ...
2
votes
2answers
1k views

Move a document from library after adding it

I am using the ItemAdded event to fill in a metadata field. In the ItemUpdated event (after submitting the file properties diagog) - I want to move the file elsewhere. However, I get an error saying ...
3
votes
2answers
2k views

One Event Receiver for many lists

I have Event Receiver for document library. It is added in Elements.xml like this: <Receivers ListTemplateId="101"> I would like to use this ER for all my document libraries. Do I have to ...