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

4
votes
4answers
658 views

Event Receiver called multiple times

I attached an event handler for ItemAdded to a content type A in the xml (using XmlDocuments). I have 4 other content types A1, A2, A3 and A4 that inherit from content type A (in their xml definition ...
0
votes
1answer
2k views

SharePoint 2013 Event Receiver on Custom List Definition not firing

There is custom list definition and I have attached an event receiver on ItemUpdating of list instances from the custom list definition. For some reason, the Event Receiver doesn't seem to fire at ...
0
votes
2answers
480 views

ItemEventReceiver - ItemDeleting not working with a document library and referencing list

I have a custom list that has a GUID column which refers to the UniqueId of a document in a document library. Every time I upload a document, it should add an entry in this list and populate the ...
0
votes
0answers
21 views

Accès refusé lors de la création d"une collection de site

I am trying to create a site collection in ItemUpdated according to my Event Handler. SPSecurity.RunWithElevatedPrivileges ( delegate () { using (SPSite oSPSite = new SPSite ...
0
votes
1answer
95 views

Access Denied when using CancelWithRedirectURL

I'm trying to prevent some records from being deleted from a list. I've got the ItemDeleting event firing and everything works great. I can prevent the item from being deleted just fine. The ...
0
votes
0answers
45 views

What are the events that are fired when a user updates a task on Project Server?

If for example I want to add an event handler when a new project is created on Project Server I create a class that is derived from ProjectEventReceiver class and I override the OnCreated method. But ...
0
votes
1answer
367 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
3answers
490 views

Unable to redirect from sharepoint event receiver

I have created an event receiver on the "Task" list. If the "Due Date" is null then the user should be redirected to the custom error page. Custom error page resides in the SharePoint mapped folder ...
2
votes
2answers
348 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 ...
0
votes
0answers
230 views

How to Retrieve List Item Using It's Field Name? - SharePoint

I have two contact lists in my site i.e. Contacts 1 and Contacts 2. I am creating "item added" event receiver on Contacts 1 that is whenever new entry is made to the Contacts 1 automatically it ...
0
votes
2answers
101 views

SharePoint rename file on overwrite

I have a simple requirement, yet it seems very complex to implement. When users upload a file to the document library, I want to check if it exists. If it exists I need to rename the file by appending ...
0
votes
2answers
2k views

Custom Error Message for Event Receiver in SharePoint 2010

I want users to upload the .doc files only in the document library. To do so, I have developed an event receiver in Visual Studio 2010. My code is as follows: public override void ...
0
votes
1answer
152 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 ...
1
vote
2answers
1k views

Unable to update item using powershell when event reciever is enabled

I have a powershell script that I am using to update some list items programatically. It seems to work as I expected when I disable the event reciever that is associated with the list however when I ...
1
vote
0answers
83 views

RefreshToken is null on ItemAdded, works fine on ItemUpdated

I have an EventReceiver that is subscribed to both the ItemAdded and ItemUpdated event on a SharePoint list. I'm using the TokenHelper provided in the sample files, and have also tried the version ...
1
vote
1answer
516 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
72 views

Notifying a webservice about list update events

I have a custom webservice hosted in SharePoint that caches data from a certain list. It needs to update the cache every time the list is updated. It seems to me there are 3 ways this could happen: ...
1
vote
1answer
99 views

Unreliable EventReceiver issue

I recently created an EventReceiver that should add a certain web part to new pages that are created. However, the EventReceiver's behavior seem very unreliable. For example, the first page I create ...
0
votes
1answer
156 views

Programatically populate custom list column

I have a list definition project (schema.xml, etc.). I would like to create a computed column that's available for grouping, but not have the computed value from a CAML query, as it's going to be ...
0
votes
1answer
85 views

EventReceiver: AddWebpart works only once or never.

I've run into an enormously frustrating problem. I want to add a Webpart to every page that's created on a certain site. I made an "Item was added to Pages library" Event Receiver, and am using the ...
1
vote
2answers
131 views

Re-attach Event Receiver to library

Using SP 2010, we created a content type with an event receiver bound to the content type. The ER is an ItemDeleting ER that prevents deletes from the library. When we create a library and attach the ...
0
votes
1answer
411 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: ...
0
votes
0answers
54 views

Features in Sharepoint 2010

I created an empty Project and used the default Feature1 thats created with the project to then create the following: public override void FeatureActivated(SPFeatureReceiverProperties properties) ...
0
votes
2answers
28 views

Workflow Question

So using http://msdn.microsoft.com/en-us/library/ff648492.aspx at the very bottem of the page theres a condition that states, "High Volume?". I just want to understand this. A brief explanation will ...
0
votes
1answer
55 views

SharePoint 2010 create SPWeb object in synchronous and in asynchronous events

Is there any difference in creating SPWeb objects in synchronous and in asynchronous events? A far as I know in both cases it will be using (SPSite site = new SPSite("http://.........")) { using ...
1
vote
1answer
365 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 ...
1
vote
1answer
315 views

Event Receivers not working on Sharepoint Online

I have a sandbox solution. It has an event receiver. The event is triggered when a workflow is started. It works in our dev environment. However, when the solution is deployed to Sharepoint Online, ...
0
votes
1answer
62 views

Event Receiver Update

I have a complex situation that I was wondering if you guys have an idea on how to do: I have 2 lists, the parent list (CRDB) and child list(ReleaseDB). The parent list can have one or many child. ...
0
votes
1answer
45 views

xmldocument & receiver on sharepoint

I'm developing on sharepoint since few months, and I begin to understand the structure of Sharepoint. However, there is some things I don't understand. For example, I don't understand how work the ...
2
votes
1answer
43 views

ItemUpdated vs FieldUpdated

I have a user request where a Document Library with Content Approval turned on, wants the name of the person who approved the document. So I created an "Approver" column and want to create an Event ...
0
votes
2answers
1k views

How to update calendar item created by an other list?

Appreciate any thoughts on this: A user edits an existing list item to pick a date to select a project deadline. A custom workflow, initiated by that item change, takes that date and project title ...
1
vote
0answers
56 views

Exchange event receivers of lists

Recently i faced an interview question for which i am unable to find a suitable answer. I was given a scenarion to implement, which goes like this. There are two event receivers Ea and Eb, these are ...
0
votes
1answer
527 views

redirect to page after itemadding in list withlong run operation

after many checking about redirecting to page from event recievers I understood that my best option it to di it from itemadding event and not itemadded. that does not means that I can neglect the ...
2
votes
2answers
309 views

Event Receiver site creation

I've got this eventreceiver that fires after an item has been added to a list. The eventreceiver creates a subsite from a template I created myself. The only problem is, every first time I try to add ...
0
votes
1answer
41 views

Changed event content type at parent now existing calendar lists content types are _hidden

I am new to SharePoint and I changed the event content type at the parent level. Now existing calendars list content types groups are _Hidden. The calendars also do not work now. Is there a way to re ...
0
votes
2answers
53 views

I want to execute workflow when new item is inserted

private void codeActivity1_ExecuteCode(object sender, EventArgs e) { SPSite objsite = SPContext.Current.Site; using (SPWeb objWeb = SPContext.Current.Web) { ...
1
vote
4answers
1k views

The security validation for this page is invalid error trying to add sharepoint approval workflow to List in ListAdded eventreceiver

What I am trying to do is to attach the OOTB sharepoint workflow [Approval Sharepoint - 2010] to each and every document library that ever gets created. To accomplish this I created a List Added event ...
2
votes
2answers
624 views

Access Denied when trying to set formdigestsettings in a list event receiver even when logged in as Farm Administrator account

I am trying to set the formdigestsettings to false within an event receiver (sharepoint 2010). So far I have tried to a) run the code with elevated privileges public override void ...
0
votes
0answers
142 views

Event Recevier ItemAdded/ItemUpdated and Custom Workflow with Word Automation Service

I have created one visual webpart to convert selected word document to pdf using word automation service. Pdf is created successfully on each time when WAS timer job runs. I know we can not retain ...
0
votes
1answer
64 views

Remove entries from dbo.EventReceivers

Can I safely remove Entries in dbo.EventReceivers ? The Problem is that when i'm deploying a Solution i get on the Feature Activation many Errors in the SharePoint Logs like: ...
1
vote
1answer
286 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 ...
0
votes
1answer
331 views

EventReceivers not firing at all

I wrote some code to do some things before and after an item is added to some lists. The solution is sandboxed. I have checked and confirmed, through power shell, that the event receivers are bound ...
0
votes
2answers
113 views

deployment issue - List Event not firing

I'm facing 2 problems when I'm deploying my solution in QA environment. Scenario 1: I have written a feature (Feature 1) to create custom list (say List 1). When feature 1 is activated, List 1 is ...
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 ...
1
vote
0answers
122 views

Using the SocialFeedManager object in remote event receiver

I'm trying to create a remote event receiver that will update the social feed of a user when ever he adds an item to a list on SharePoint Online. I've initiated the client context object using the ...
0
votes
2answers
735 views

Object reference not set to an instance of an object inside Event receiver in Form library

here is the problem. I have a form library that uses Infopath as form. It has an event receiver. This was done by someone else. I was trying to get the beforeProperties, afterProperties or ListItem ...
2
votes
0answers
481 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 ...
1
vote
3answers
851 views

Problem adding sharepoint group in list item on itemupdated event

I have this code below and I am trying to add a sharepoint group to an item in a list in itemUpdated event handler. the problem is that the update never happens. The problem is with this line of code ...
1
vote
1answer
2k views

Use application page as edit form on list?

I createad an application page and put it under /_layouts/, in the list definition I specified the edit form like so: <FormUrls ...
1
vote
1answer
240 views

remote event receiver on sharepoint 2013 online does not working

Hello i recently started to developing sharepoint 2013 to my office365 account. The problem is that remote event receivers which I attach to deploying application do not work. I mean that they should ...