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

1
vote
1answer
158 views

SharePoint Event Receiver does not fire after deployment

I have created a simple SharePoint 2013 solution and added event receiver. When I am in visual studio, i hit F5, solution is deployed and event receiver works. However, when I publish the solution ...
0
votes
1answer
74 views

How to add a 3rd party library in sharepoint 2010 event receiver

I am writing a SharePoint item event receiver to OCR documents that are uploaded/added to a library to generate searchable PDF for that document. I'm using a third party library (dll) ...
2
votes
1answer
49 views

How can I change “AfterUrl” in an event receiver?

I have an event handler that changes the title of the file. However shortly after this event handler ends SharePoint will open the editpage for the user to edit it. However properties.AfterUrl is ...
0
votes
1answer
61 views

Attaching Event Receivers on more than one list

I have a SharePoint 2013 site with multiple lists. Many of the lists have a common content type. We have created custom event receivers to be attached to these lists. But since we want the same event ...
4
votes
2answers
68 views

How to check where 'SPEmailEventReceiver' is attached?

I created a simple event receiver of SPEmailEventReceiver. But while creating it, Visual Studio did not ask me on which list/library it needs to be attached. In PowerShell I know that I can get event ...
1
vote
0answers
25 views

Prevent update of SharePoint document library item when clicking [OK] button in Edit Form

I am developing a SharePoint (2007) document library item event receiver to force the user to click on the [Cancel] button instead of the [OK] button in the Edit Form (EditForm.aspx), since clicking ...
1
vote
1answer
63 views

Copy document to document library in another site with meta-data

I have implemented an event receiver on a SharePoint 2007 (MOSS) document library, to perform certain validations via the itemUpdating method and to copy the document to a document library in another ...
2
votes
1answer
85 views

Best practice for calling web service from Sharepoint List Item Event Receiver

What is the recommended way to introduce the invocation of an ASP.NET web service from a SharePoint list item event receiver (specifically, a MOSS 2007 document library)? I don't want to tightly ...
3
votes
1answer
84 views

PDF conversion version issue

I am converting word files to PDF using word automation service using event receiver ItemCheckedIn event. I have selected major-minor version settings in Versioning Settings. in The code works fine ...
1
vote
2answers
68 views

Event Receiver to add value in field automatically in sharepoint list

I have a list having 5 fields. I want to add value in 5th column when i add new item. Like when i fill value for 4 columns and save item, then 5th column should auto populate with value = "Checked". ...
1
vote
0answers
18 views

MOSS 2007 SPItemEventProperties values of fields accessed via display name or internal name

I need to access the before and after field values for the list item corresponding to an event receiver in MOSS 2007. The name of the field is Annual Salary and the InternalName is ...
2
votes
1answer
33 views

ItemUpdating event receiver method yielding COMException in MOSS 2007

I implemented an event receiver and attached it to a MOSS 2007 document library. I overrode the synchronous itemUpdating method and perform some validation before letting the update operation proceed. ...
3
votes
1answer
92 views

Deploy/bind event receivers to lists in single feature

I need to develop and deploy an event receiver (A) to a specific document library <1> and another event receiver (B) to another specific email-enabled document library <2>; both document ...
0
votes
1answer
31 views

Getting BeforeProperties for User field in ItemUpdating or ItemUpdated Event Receiver

I am trying to get the BeforeProperties for an User field in a custom list on ItemUpdating or ItemUpdated Event Receiver. i always getting 'null' on the before value String Olds = ...
0
votes
0answers
9 views

Eventhandler status? 2013

I am attempting to check during an itemUpdating event receiver if the event was cancelled for any reason (did the user put in a document name that wasn't unique?) and I am looking through the ...
0
votes
1answer
50 views

Sharepoint EventReceiver Singleton for one thread

I would like to create singleton patter in Sharepoint EventReciever. The singleton have to be unique for every run of EventReceiver (I dont want to share data between ed and ing function - this is not ...
0
votes
1answer
17 views

Add a column in Document Library on the fly when the Document Library is created

I want to create a column created/added when I create a document library or splist within my site collection. Will the approach of : ListCreated event receiver work in this situation? Should I ...
0
votes
0answers
26 views

Multiple EventReceiver for custom list firing same time

I created a multiple event receiver under single solution. Each bind to specific custom list using Elements.ListUrl. All three event receiver target a single custom list to perform item insert with ...
2
votes
2answers
128 views

Custom List EventReceiver Not Working

Am trying to perform a basic insert to custom list item when an item added from sub-site source list but the insert command don't execute. Any idea? Elememnts.xml setting to hook the receiver: ...
2
votes
1answer
55 views

ItemUpdated event not firing when list item updated from another event receiver

I have two lists List1 and List2. I have written code to update List2 item from ItemUpdating event of List1. This should fire ItemUpdated event of List2 but it does not. Below is the code I used to ...
0
votes
1answer
42 views

List item add with event receiver COMException

I expose my scenario and my issue. Scenario I have one custom list in SharePoint 2010 Foundation called Actions. This list has one event receiver that override this methods: ItemAdded ItemUpdated ...
1
vote
2answers
104 views

Find out user who deleted an item in SharePoint 2013 Document Library or List

Let's say a user deletes few items from a document library. Is there a way we can find out the user name of the person who deleted those. I looked into alerts which does let one know which item was ...
1
vote
2answers
91 views

WebProvisioned event handler is firing twice and subsite does not inherit the parent's top navigation

I have created an web event receiver but the webprovisioned event handler fires twice. I have set the scope to web, but it still fires twice. Problem 1 This is elements file: <Elements ...
0
votes
0answers
7 views

globalnavigation not taking effect in webprovisioned

I have set to inherit the top navigation from parent site, but it does not take effect until I go to site settings\navigation and I simply click ok then it is set without modifying any options as top ...
1
vote
1answer
58 views

Error on ListAdded event receiver

I have created a List Event Receiver to add a content type to every document library and added the following method : public override void ListAdded(SPListEventProperties properties) { ...
1
vote
1answer
174 views

Error thrown on Item updating event in SP 2010 “Save Conflict Your changes conflict with those made concurrently by another user”

I have a custom list and I have written an itemUpdating event on it. The event sends an email to some users with updated data. When I click on save, the changes are not saved, though i get the email ...
0
votes
0answers
12 views

Publishing page javascript events

I want to do some manipulations with page content when it's loaded in edit mode. For this purpose I have registered an event handler as follows: ...
1
vote
0answers
134 views

Service unavailable when deploying event receiver to Sharepoint

I'm trying to deploy a simple remote event receiver (as per http://sundarnarasiman.net/?p=224) to a hosted Sharepoint 2013 server, for which I have admin rights. However, when building/deploying this ...
0
votes
0answers
17 views

Restore viewstate while cancelling request

I have a SPItemEventReceiver with custom ItemAdding handler. When any exception occurs (frequently it's just a model validation) it handles this exception in Handle method. Now it looks like this: ...
1
vote
0answers
20 views

Whether item.recycle method will trigger event receiver?

When an item.delete() methods get called it will trigger the respective item deleting and item deleted event receiver. Whether this will behave same for the item.recycle() method too.
0
votes
1answer
84 views

How to attach a web provisioned event receiver to a web template?

I have created a web template using the onet.xml and elements.xml. I have created a web provisioned event receiver, but it is not really attached to my custom web template. When I create a site the ...
0
votes
0answers
27 views

Feature with an listinstance and eventreceiver to modify version settings, order issue?

I created in vs an listinstance. I add this list instance to a feature. In this feature I created a feature event receiver to modify the version settings. I see now when the feature event receiver is ...
0
votes
0answers
55 views

Create a list in the root web when site collection has been created

I have a site definition for creating a Site Collection. I need to develop a code (Event receiver, Feature Receiver and etc) to create a list in the root web of my site collection when it has been ...
0
votes
1answer
57 views

EventHandler, HttpRequest and uploading file via HTTP PUT

I'm trying to develop and event handler which reads PDF files in ItemAdding method. After reading a bit on the internet, I finally found a way to do so. When uploading a file through a browser, ...
3
votes
2answers
76 views

Programmatically create a ContentDatabase C# SP2013

I am searching for a solution of my problem. I banged my head for the last few hours and tried several things and solutions found on google or stack-exchange. The database should be created via Event ...
0
votes
1answer
82 views

Unable to debug SPListEventReceiver

Running VS and SharePoint on the same server, but I am unable to debug my simple Event Receiver to see why it is not firing. Here is the snipp: public class EventReceiver1 : SPListEventReceiver { ...
1
vote
0answers
92 views

Convert document to pdf using event receiver in SharePoint 2010 not working

I followed steps on this link to convert a word document being added to pdf format using a custom event receiver. I was able to attach the receiver and trigger the code written but somehow the ...
1
vote
1answer
28 views

Copy a file content using event receivers?

I want to know if there is any way by which I can make a copy of the file which is being added to a document library using c# event receiver and further convert it to pdf in SharePoint 2010 ? i.e If ...
0
votes
0answers
43 views

Add metadata to all files at any level under the root folder/

I have a requirement where i need to add a metadata to all the files automatically when a folder having files at multilevel inside this folder(basically there are folders inside folders and files will ...
0
votes
1answer
117 views

Email sent to document library, event reciever not triggering for them

I have a scenario wherein I have a folder structure where I need to move a file from root folder to that folder structure inside same document library. The catch here is I need to do this by using an ...
0
votes
0answers
15 views

getting image of the first slide as a column value in Sharepoint 2010

I am a dotnet developer, completly new to share point dev. I am Using Sharepoint 2010 and VS 2010 -> My requirement is to show the thumbnail image of first slide of the presentaion the user is load. ...
2
votes
2answers
102 views

Where can I see attached custom event receivers?

I'm completely new to the SharePoint world and I've inherited our SharePoint (or at least the development side of it). Most of my trouble at the moment stems from finding things. This project has ...
0
votes
0answers
21 views

How to detect in a reliable way when a user is added or removed for sharing purposes?

Are event receivers the way to go for a reliable solution in SharePoint Online to detect if a user or file has been marked for sharing or unmarked?
1
vote
1answer
51 views

sync 2 lists between different farms with event receiver

I have to sync 2 same lists between 2 different farms . The original list is located in a SP 2007 farm and the destination is located in a SP 2013 farm. I have already an event receiver in SP 2007 ...
0
votes
1answer
139 views

ItemUpdated event receiver not trigger when item update from workflow in sandbox solution

Itemupdated Event Receiver not triggered when item update from workflow I have created workflow on document library which simply update single column. And i have also create ItemUpdated event ...
0
votes
1answer
62 views

Customize document library EditForm.aspx to display Error/Exception

I am writing an ItemUpdating event receiver for a document library in MOSS 2007 (yes, I am still on that version!) and need to bake in some validation. If the validation fails or if an exception is ...
1
vote
1answer
40 views

Detecting change in users/groups on web

I want to execute some code when the users/groups with access to a web changes (addition and removal of users/groups). What are my options?
0
votes
1answer
44 views

Why can I not call a public method in my Web Part (User Control) from an Event Receiver?

I've added this Event Receiver (based on what I found here): using System; using System.Security.Permissions; using Microsoft.SharePoint; using Microsoft.SharePoint.Security; using ...
0
votes
0answers
23 views

Document library Item update even receivers are not firing when update item from code but working fine manually updated

I have been pleased with the results that I had setting up an ItemEventReceiver for a document library. The event receiver fires every time I update a doc record by hand (using Item Added event). ...
0
votes
0answers
235 views

Use Event Receiver to Start SPD Workflow when Item is Updated

I've searched all day for guidance about how to create an event receiver that will start a SharePoint Designer workflow when a library item is updated, but haven't been able to find much. I'm very new ...