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
52 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
69 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
73 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
56 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
17 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
28 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
81 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
29 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
48 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
16 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
107 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
50 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
38 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
86 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
82 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
48 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
149 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
11 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
133 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
15 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
19 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
77 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
23 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
48 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
53 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
75 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
63 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
81 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
38 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
100 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
89 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
48 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
131 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
42 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
22 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
221 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 ...
0
votes
1answer
85 views

Get selected Value from Lookup Dropdown on ItemAdded

I am attempting to grab the text value of a lookup dropdown after an Item is Added. The way I'm currently doing this, gives me the string 23#ADMIN, which is the combined ID and text. I could go the ...
0
votes
2answers
174 views

javascript event when a row is updated/changed in a Datasheet view?

Is there any way to catch update/changes in the Datasheet view of a list in JavaScript in SharePoint 2010? I see their are event receivers but nothing in Javascript.
1
vote
1answer
56 views

Event receiver on library. Fire only once on upload

Here's what I'm trying to do. I'm adding an event receiver on my pictures library such that when something gets uploaded, the image gets resized. I've got the code working fine for this. However, ...
2
votes
1answer
87 views

SPEmailEventReceiver create item with relation to email

Im trying to implement custom SPEmailEventReceiver. I created class simular to this: http://stackoverflow.com/questions/24370749/getting-the-email-message-eml-as-an-attachment-to-sharepoint-listitem ...
2
votes
1answer
136 views

Specify ListUrl for Event receiver

I need to add an event receiver on a list in substite. My list is: test in subsite: /sites/mysite2 I tried a lot of combination but always same result when i try to deploy: The list doesn't exist ...
2
votes
1answer
178 views

SharePoint Online Event Receiver not always firing?

Hello, I have an event receiver set up on a list in SharePoint online. I have a provider-hosted SharePoint Add-In running in Azure, which hosts a remote event receiver service that is called when an ...