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

0
votes
1answer
655 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 ...
2
votes
1answer
489 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
2answers
27 views

deleting event receiver programatically using c# code

I am using the below code for deleting the event receiver It works fine for users in admin group, but for users in contributors group i am trying to delete the event receiver by using elevated ...
0
votes
1answer
39 views

How to restrict user from deleting\editing documents if user is not author of that document

I want to restrict users from editing or deleting others documents, but they can edit/delete there own documents. In list we get this functionality in advance settings, but in document library it is ...
0
votes
0answers
9 views

Event receiver to update enterprise wiki page's Title once its Name is changed

I need to automatically update the wiki page title when its wiki page name get updated , currently i am doing this using workflow as follow:- so i am checking if the Name != Title, and update the ...
2
votes
0answers
28 views

Sychronizing a List and a Term Set

In an application I'm building in SP 2013, I would like to have several lists with lookup fields, attachments, workflows, etc., but also be able to reference them via tag fields (at least like a ...
1
vote
1answer
18 views

Programmatically changing a field won't trigger the event receiver

I have a console application that updates an item's field. The field is updated but it doesn't fire the event receiver attached to itemupdated. The same receiver fires when the item is updated inside ...
0
votes
1answer
19 views

SharePoint 2013 CSOM: How to attach an event receiver to a list

A list has a (C#) event receiver. I would like to attach this (existing) event receiver to another list (actually multiple lists) using the SharePoint client object model (CSOM). Is this possible and ...
0
votes
1answer
35 views

How to identify that new file is updated?

I have created an event receiver with ItemUpdated properties. I want to update some field if new document is uploaded. But whenever the any field is updated, ItemUpdated is fired. I want to check that ...
0
votes
1answer
24 views

How to set Receiver url to list

how could i set receiver list url? I dont have like this List/myList, i have a drafts url? <?xml version="1.0" encoding="utf-8"?> <Receiver> ...
0
votes
1answer
70 views

Calendar - How can I expand the recurrences of a recurring item in ItemAdding event receiver?

When a user add a new recurrence event to a calendar I want to check if any of the recurrences overlap with events already in the calendar. I saw the property Recurrences Data and its XML but I didn't ...
0
votes
0answers
21 views

Item added in Document Library

I am trying to update a document library column when adding a document. When I press "Take the published document, but create a draft to work on" after this time I want to update a column in my ...
0
votes
1answer
18 views

Email enabled list item added

I am currently developing an event receiver for an email enabled list and I'm confused as to how to correctly handle the item being added to the list. On one hand I have the ItemAdded event and on ...
2
votes
1answer
517 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
0answers
20 views

Find more information about an Event Reciver

I am trying to debug a customized SharePoint 2010 which I did not design/install. It is not doing what it is suppose to when a list item is added. I have installed SharePoint Manager, and found ...
0
votes
1answer
27 views

Event receiver, unpublish

Hi how could i use a event receiver based on a document library, to se if the user has unpublished a dokument in the library, in the mean time also i want to update a field in the document library ...
3
votes
1answer
92 views

Files moved with SPFile.MoveTo require a full crawl to be searchable

We've got a problem in our search-driven document management system, and I'm running out of ideas. A custom event receiver, on ItemUpdated() checks to see if the files metadata requires it to be ...
0
votes
1answer
2k views

Problem with save conflict when adding content type to list

I have a feature receiver with the following code: public override void FeatureActivated(SPFeatureReceiverProperties properties) { SPSite site = (SPSite)properties.Feature.Parent; ...
0
votes
1answer
35 views

ItemAdding list field

I am trying to update list field using ItemAdding, public override void ItemAdding(SPItemEventProperties properties) { SPListItem curListItem = properties.ListItem; ...
0
votes
1answer
20 views

Target a Document Library Event Receiver to a Library with a Space in the URL

See XML below. When I attempt to activate the feature I get the error "The list "Test List" doesn't exist. Please fix the ListUrl attribute. <?xml version="1.0" encoding="utf-8"?> ...
0
votes
0answers
15 views

Issue in production environment using EventReceiver with HttpRunTime

I am using below code in my EventReceiver using-HttpRunTime.Cache-and this code works in my dev.environment and my test environment.But this code fails in my production environment where i am having ...
0
votes
1answer
799 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
1answer
492 views

There was no endpoint listening - AppEventReceiver

I'm developing provider-hosted SharePoint 2013 App with Windows Azure as a backend. I created an app event receiver to fire when app is installed. When i publish my Web App (.NET MVC4) to Azure, ...
1
vote
1answer
618 views

Task List ItemAdded Receiver doesn't work for workflow created tasks

Why doesn't the ItemAdded Receiver get called when a task was created by a workflow, but when a user created a task it does? I tried setting the Receivers ListUrl to my list URL and tried using the ...
0
votes
1answer
48 views

Default SPEmailEventReceiver: Object reference not set to an instance of an object

I'm trying to write a new Email Event Receiver for an email-enabled document library. When my feature is disabled, email is delivered successfully to the library. When my feature is enabled, this ...
0
votes
1answer
446 views

Can't use SPItemEventProperties ListItem on ItemAdded in Event Receiver

I'm using event receivers to modify some of the inputs in a SharePoint 2013 site. They are fairly straight forward, here is a simple example public override void ItemAdded(SPItemEventProperties ...
0
votes
0answers
10 views

AfterProperties and BeforeProperties of Site Column returns Null in ItemUpdating Event Receiver

I am getting the AfterProperties and BeforeProperties of a people picker column for my document library as NULL within ItemUpdating method. My site column name is Read Access.and in my document ...
0
votes
1answer
26 views

Get the BeforeProperties and AfterProperties in ItemCheckedIn

I am currently trying to develop an event receiver that uses properties.AfterProperties object in updating and ItemUpdated and ItemUpdating event, so can I get the BeforeProperties and AfterProperties ...
0
votes
2answers
38 views

What is the best way to CRUD data in SQL database into SharePoint?

In Sharepoint site, I have a list, it will display data from the table in SQL database. When user insert, update or delete item in this list, the SQL database will be changed too. The change is one ...
0
votes
0answers
11 views

Renaming a file with Event Receiver [duplicate]

I need to rename a file in a document library with an event receiver, so that the URL will not have %20's. Basically the File name or File path needs to be stripped of spaces. The problem I'm having ...
0
votes
0answers
11 views

Event Receiver Infopath

How to reference and update a field in InfoPath using the event receiver in the form library in which the form is submitted to? How do you reference InfoPath document and a get a value(update it) in ...
0
votes
0answers
34 views

Renaming a file with ItemAdded Event Receiver

I am using an Event Receiver to rename a file in a document library. For some reason this doesn't seem to work. public class EventReceiver1 : SPItemEventReceiver { /// <summary> /// An ...
0
votes
2answers
412 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 ...
1
vote
1answer
42 views

Event Receiver How to change account of Firing Event Receiver

Event receiver always running on privilages of acount who logged in. How to change in Event Receiver Account with who is firing the account. How could I set a account for firing event receiver ? By ...
0
votes
1answer
21 views

How to set start Value on Event Receiver

I must set a Value in Items Adding, it should be start Value of element. How could I set a Value. Like Default Value But that will be number User1, User2, User3 To Unical identyfy User. I have got ...
-1
votes
1answer
57 views

ItemUpdated Event Receiver how to change element from one list to secound list

I have got two lists. I must do synchronize this list, but one have got only 3 columns, and secound list have got 3 columns too, but have got more columns with hidden value. I done synchronizing ...
4
votes
1answer
585 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 ...
0
votes
1answer
27 views

Event Receiver Item Updated how find element to update

How to find by code elements to update in Event Receiver ItemUpdated and to update them ? Please help.
0
votes
3answers
34 views

Problem with Item Added Event Receiver firing five times, not one

I am using an Event Receiver, which should synchronize two Lists, But it is firing five times instead of one, and makes 5 records, not one. Why is it firing 5 times? public override void ...
0
votes
1answer
32 views

SharePoint Online: Provider hosted App - Deployment Eventreceiver

I created a provider-hosted app, with a MVC webapplication. Inside my SharePoint project, I created fields, contenttypes and lists. But now I need a solution for this. 1) I need to create ...
2
votes
1answer
30 views

Event receiver on newly created site

I need the steps on how to attach event receiver whenever any new site is created. I have not tried this before. I need the detailed step on creating event receiver on site creation
2
votes
1answer
53 views

Item still deleted when click on OK in ItemDeleting event CancelWithError

public override void ItemDeleting(SPItemEventProperties properties) { try { properties.Status = SPEventReceiverStatus.CancelWithError; ...
3
votes
1answer
79 views

Add-SPSolution Error An object in the SharePoint administrative framework, "SPSolutionLanguagePack Name=0

When I tried to add my wsp solution I am getting the error, An object in the SharePoint administrative framework, "SPSolutionLanguagePack Name=0 Parent=SPSolution Name=myeventreceiver.wsp", ...
0
votes
1answer
24 views

Event Receiver Infopath Submission

I have a request that the permissions inheritance(library to item) in the InfoPath form library should NOT to be broken. So what I am looking for is that the submitter group that has a read access ...
0
votes
1answer
36 views

Event Receiver and Infopath based coloumns

An event receiver on an InfoPath library works only when updating columns that are not created by propagating values from Infopath(). In code below "change" is a regular lib. column and ...
0
votes
1answer
23 views

Event Receiver Does Not Cancel In Explorer View

I have a document library with a ItemAdding event receiver registered to it that looks for whether a folder has been added and if so, cancels the folder creation. This works fine in the GUI. However, ...
0
votes
3answers
257 views

item adding event receiver failes to trigger in bulk items inserting

Currently am developing an item adding event in event receiver for a custom list. The list is updated using datasheet view, usually by adding bulk items (ex : 50 items ) to list using datasheet view. ...
3
votes
1answer
18 views

Accessing Web application on a NLB Environment having Session values

I am having a multi server production environment with 2 WFEs ,2 Index Servers, 2 SQL Server boxes. I have deployed my wsp on these 2 WFEs. The issue I am facing is when the NLB switches from one IP ...
2
votes
1answer
25 views

Cancel event while ItemAdding

I am just trying to cancel the default behavior of event when adding Item public override void ItemAdding(SPItemEventProperties properties) { try { //my code ...
0
votes
0answers
11 views

event receiver preventing column updates in a content type during bulk upload

I am bulk uploading files to a library. In the bulk upload, i will be able to specify content type of the file and values of all other fields for that content type. When i upload files, the file ...