Event Receivers are a piece of managed code that responds to SharePoint events when specific triggering actions occur on a SharePoint object.

learn more… | top users | synonyms

7
votes
1answer
658 views

Client Object Model SystemUpdate

I need to have the SystemUpdate functionality from the Client Object Model. Is there any way I can do it since the ListItem.SystemUpdate() does not exist? Another solution would be to disable the ...
0
votes
0answers
8 views

Event Receiver for Social Features

Are there any such things as event receivers for social activities in SharePoint 2013, e.g. when a user likes or rates an item? If not, are there any other ways to execute custom code when events like ...
7
votes
4answers
7k views

Race condition in SPListEventReceiver.ListAdded - Save Conflict

I am currently developing an Event Handler for SharePoint 2010 which sets defaults for Document Libraries on creation (content types, version settings etc). I am having a problem with Save Conflicts ...
6
votes
4answers
17k views

Error occurred in deployment step 'Activate Features': <nativehr>0x80070002</nativehr><nativestack></nativestack>

I have a feature. On the FeatureActivated event I am creating a list if it is not there. I also have an EventReceiver that in the elements.xml on the Receivers node has the attribute ListUrl. This is ...
0
votes
2answers
33 views

How do you decide the feature scope of event receiver?

We have event receivers for List, List field, List items, Web, Site and List email. How do we decide the feature scope of the event receivers? Is it best practice to set it to sitecollection or web ...
4
votes
1answer
27 views

Synchronous ItemAdded event. Do I need to explicitly call properties.Dispose()?

We have a SharePoint 2010 On-Prem solution. I have an ItemAdded event receiver which has been made synchronous using the Synchronization property. Now, when this event receiver fires, I have used the ...
0
votes
1answer
26 views

Change a property in an ItemUpdated event receiver

I have a very simple code but I can't change a property in an ItemUpdated event receiver public override void ItemUpdated(SPItemEventProperties properties) { base.ItemUpdated(properties); ...
0
votes
1answer
289 views

copy an event receiver to a different server

My work is requiring me to create an event receiver for an itemAdding event for an existing list on a Sharepoint Server. My problem is that while I have access to a Sharepoint Server, I do not have ...
3
votes
1answer
299 views

Event Receiver - Cannot access item from Document Library if the user changed the name

I have a library, that has versioning enabled. On that library is an event receiver that does stuff, on ItemUpdated. Ok, if the user uploads a document, and does not rename the document during the ...
1
vote
1answer
372 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
0answers
5 views

Get reference to web and list in workflowstarted() and WorkflowCompleted() event receivers

I am trying to write event receivers for WorkflowStarted and WorkflowCompleted events for workflow. I want to access the current web, list, Item reference from this method. I wrote the following code: ...
0
votes
3answers
289 views

How To attach an Event Reciever to a Specific List in SP2007

I'm having trouble binding my event receiver (ItemAdding) event to a specific list. I created a Feature Receiver and tried both the GUID and Name. But, I have another list that uses the same column ...
0
votes
1answer
14 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
1answer
284 views

Remote Event Receivers Troubles

So I've been working with the remote event receivers for Sharepoint 2013. I'm working with having them connect to a local IIS server to accept the inbound events as the Visual Studio tools make it ...
0
votes
0answers
12 views

Event Reciver on SP2013 - weird behaviour handeling error

I have an event receiver(ItemDeleting) that prevents an item deletion with the following code: properties.Status = SPEventReceiverStatus.CancelWithError; properties.ErrorMessage = ...
1
vote
2answers
27 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 ...
0
votes
1answer
292 views

delete feature using event receiver on a farm feature

there is a farm feature and there is a web-scoped feature. web feature does stuff on multiple sites. If ever i want to get rid of the feature on all sites, I have a farm feature that has on ...
0
votes
2answers
20 views

Feature removal without deactivation

My project had a feature, and on activation of this feature, I was binding an event receiver to a list; on deactivation, the event receiver was removed. It so happened that this feature was activated ...
0
votes
5answers
3k views

Event Reciever Custom Error Message Page Sharepoint List 2010

I am working on creating event receiver on a specific custom list using visual studio 2010. Below is the screenshot of the error message set on properties. ErrorMessage I'm interested in knowing ...
0
votes
1answer
318 views

Event Receivers on Add/Remove Users

I need some design ideas for a requirement to audit when uses are added/removed from an object. I need to collect the user doing the add/remove, date time, and reason for adding. I need to do this to ...
1
vote
1answer
294 views

SPListItem.Update() not firing ItemUpdating

I'm updating item in SPListItemCollection using SPListItem.Upadte() but my event receiver is not receiving ItemUpdating/ItemUpdated events (breakpoints are not hit on either handlers). Sample code ...
0
votes
1answer
376 views

How to disable event receiver in feature deactivated?

I am new SharePoint programming. I have created event receiver on item adding for the document library that allows only .doc files to be uploaded, otherwise it gives error. My code for event ...
0
votes
1answer
111 views

“Feature has conflicting event reciever settings” error

I am new to SharePoint so I apologize if this is not phrased properly, but I created a BDC to a SQL database in Visual Studio 2012. I am trying to have the list created programmatically through an ...
0
votes
1answer
1k views

How to assign a particular column values of sharepoint List A 2010 from sharepoint ListB 2010

I have two list in sharepoint 2010. In List A i have Assigned to field column(people or user group). In List B i have two fields Name and Email id column. I need the email id values of List B should ...
0
votes
1answer
447 views

WebProvisioned Event Receiver Firing Twice

I am creating sites and subsites with object model from a console app. And what i realized is, it fires twice for every newly created subsite. I checked from Sharepoint Manager if the event receiver ...
1
vote
2answers
308 views

Cannot add or use assembly in GAC?

I cannot add an Additional Assembly (DLL) via my Event Receiver Package settings. When I attempt to deploy, I get the following error: 3> Deploying solution 'EventReceiver.wsp'... 3>Error ...
1
vote
1answer
151 views

refresh page after event receiver item updated

I'm trying to refresh the page after the event itemupdated is fired. I've tried at the end of itemupdated without success properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl; ...
0
votes
1answer
20 views

How to convert .eml file to .msg file for each new item in a document library?

I have a document library. Sometimes we upload .eml files. These .eml files could not be opened on mobile devices. When you convert the .eml file to a .msg file it is possible to open the file on ...
0
votes
1answer
369 views

ApplyWebConfigModifications caching issue

Doing some testing of adding multiple configuration settings during a feature activation. One of my trials caused an error with a setting, specifically around preCondition statement for ...
1
vote
2answers
22 views

How to handle Events in SharePoint 2013 On line custom list?

I am working on SharePoint 2013 on line. I would like to know best possible way for Event handling in SharePoint 2013 On line.In SharePoint 2010 we manage it through Event Receiver or workflow.
1
vote
2answers
762 views

Debuging Event Receiver- Sharepoint 2013

I am trying to create ER for a document library, eg http://server.com/sites/dev I wanted to monitor document library for add and remove item. I created Empty SharePoint 2013 project ( Not sandboxed) ...
1
vote
1answer
22 views

Force checkout new items

I would like to force check out documents to the owner of the document when it is added. I am currently doing this when a new item is added via a workflow. I'd like to achieve this via an event ...
1
vote
1answer
310 views

SP2013 : Generate an autoincrement identifier (YYYYMMDD9999) based on creation date for a document

I need to generate a record id for a document, with format YYYYMMDD9999 where 9999 is a autoincrement number per day. This id must of course be unique, but i have no idea how to be sure to avoid ...
0
votes
1answer
446 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
13 views

how to move a file in itemupdating

Like described in the title i'd like moving my file in itemupdating in place of itemupdated. Like this the list is refreshed and file doesn't display anymore. I use this that works and move correctly ...
0
votes
1answer
24 views

Set approval status of a list item to pending while retaining the approved version

I have a site with multiple lists which are linked to each other. When I update an item(edit / approve) in one list, the approval status of the corresponding items in the other lists also should be ...
0
votes
1answer
777 views

Try to add a user to a multiple user field in the itemUpdating eventreceiver: The field you are trying to update may be read only

I am using Sharepoint 2013. I have created a custom list. This custom list is using a custom contentype. In this custom contenttype I have a custom column. This column is a people picker. It is ...
0
votes
1answer
479 views

Help with Blog EventReceiver, not firing

Ok so I have a blog site and I need to change the name of the author of each post to 'Anonymous' after he saves the post. I created an EventReceiver project in Visual Studio and gave the URL ...
0
votes
1answer
419 views

Event Receiver on Publishing Page Library

I created a new event receiver and hooked it onto the Pages library for my publishing site. I attached each one of the events exposed, but I cannot get any of them to fire. elements xml: ...
1
vote
2answers
331 views

Change displayname of a List with event receiver

I need to change the displayname of a list using "ItemUpdating". The source of the new name is the "Title"-field of the item which fires the event. Is this possible? I tried it with: if ...
0
votes
1answer
40 views

Save Conflict error While Saving

I have one sharepoint 2010 application, in which i have to add the item to the list followed by 2 more updates within the same list item. These are the items that I have to do while saving. I need ...
1
vote
1answer
23 views

List Item sending an email on ItemUpdated previous confirmation

I'm working on a Sharepoint 2010 List trying to send an email with a custom Even Receiver, on Item Updated. The List Item has to send an email when some fields are filled, other email when other ...
1
vote
1answer
430 views

SPContext.Current.FormContext.OnSaveHandler Not Firing from Custom Field Type Control

I am having the exact same problem described here. Unfortunately because I don't have 50 points yet I can't comment on it so I have to create a new duplicate question. I mean it's not "100% EXACTLY" ...
1
vote
1answer
517 views

WebProvisioned event receiver is firing twice

I am creating a SharePoint site from code behind using SharePoint object model. In the WebProvisioned event, I am creating the groups, enabling a few features. Everything is working fine, except the ...
1
vote
0answers
20 views

How to display error message on the same page even with attachment [duplicate]

I have been trying to figure this out for days with no luck. I am working on Sharepoint 2013 application. In my application, the fields will be validated and display the error if the input is wrong. ...
1
vote
1answer
1k views

Redirect in Event receiver SharePoint 2013

My question was simple in SharePoint 2010 but in SharePoint 2013 is complicated! In 2010 I could redirect user by setting properties.Status and properties.RedirectUrl. Now RedirectUrl and ...
2
votes
2answers
352 views

How do i send user back to edit item dialog when event receiver comes back with an error

I am creeting an event reciever that ensure that my list has unique items based on two columns. If I find a duplicate I wish to do one of the following: display a dialog which states a duplicate has ...
1
vote
1answer
368 views

SharePoint event receiver ItemUpdating event behaves differently when a list item is updated through Workflow

I am having a SharePoint custom list which is having a designer workflow and event receiver attached to it. In the event receiver on ItemUpdating event I am having the below code to check if a ...
0
votes
1answer
22 views

Event Receiver for View Add/Edit?

Is there such a thing? It's not listed as a receiver http://msdn.microsoft.com/en-us/library/office/gg749858(v=office.14).aspx but I'm hoping I'm missing something. Am I limited to over-riding the ...
0
votes
1answer
31 views

Use one event receiver on two lists in different site collections

This is my scenario: I have one Web application with 2 site collections. Then I have 2 lists ('list1' and 'list2' are in different site collections). The two lists however are identical (with the ...