2
votes
1answer
25 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 ...
0
votes
0answers
19 views

Stop NewDocSet.aspx from redirecting on cancelwitherror

Is there a feature/flag/something that can cause newdocset.aspx for a document set to force redirect on itemadding/itemupdating over to an error page with my custom error messages? I'm not trying to ...
2
votes
0answers
30 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
17 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
27 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
227 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
81 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
73 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
117 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
390 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
121 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
1k 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
261 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
137 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
369 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
289 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
97 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
84 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
167 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
1k 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
539 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
100 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
433 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
892 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
558 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 ...