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

2
votes
1answer
24 views

Content type eventhandlers gets bound to list

I have a custom parent content-type on which I apply 6 event-handlers. I then have 24 content-types based off of the parent content-type - thus inheriting the 6 event-handlers. - All defined in XML I ...
1
vote
1answer
325 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
34 views

Event receiver Causes Problem while adding items to a list

I have created Visual Web Part which adds items to a X list.But while adding item to it, I am getting the following error once Item.update() hits in Visual studio . is it because of Event Receiver ...
1
vote
2answers
327 views

Event Receiver redirect to Visual web part

Here is my Event Receiver to redirected to my visual web part: public override void ItemAdding(SPItemEventProperties properties) { base.ItemAdding(properties); properties.Cancel ...
1
vote
2answers
437 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) ...
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 ...
1
vote
1answer
28 views

under which account does event receiver code run?

I would like to know under which account does event receiver code run? Also suppose event receiver is ran on item added event that creates an item in another list. Then what will be the created by ...
0
votes
1answer
30 views

Eventreceiver when item added through Office

I have a weird problem. I created a content type in Visual Studio 2012 for SharePoint 2013 with some metadata fields, a document template (word) and deployed it to the content type hub. The content ...
0
votes
1answer
25 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
0answers
81 views

Lock error when updating new document in ItemAdded

I'm trying to update an item when it is added to a document library. I have an EventReceiver on my document library and I am using the ItemAdded event. I am using the New Document button to create a ...
0
votes
2answers
439 views

Setting Taxonomy value during itemadding

How can i set an taxonomyfield during an itemAdding event? i've got a TaxonomyFieldValue created from my propertybag. public override void ItemAdding(SPItemEventProperties properties) { //Get ...
0
votes
1answer
30 views

Security trim list-items based on a session variable

I have created a session variable. And have created a site column that sets a flag that corresponds to that session variable. I would like to hide/show list items across any list utilizing this site ...
1
vote
1answer
213 views

Get selected term level

I've got a "Managed Metadata" column on a document library (required field). When I've added a document, I need to get te level of the selected term in my term store. I'm using a eventreceiver. I know ...
1
vote
1answer
15 views

Remote event receiver setting LastModifiedBy to “SharePoint Program”

I have a remote event receiver, on a list, that fires every time an item is updated, and it works fine. However the "Last modified by"-field on the item is set to "SharePoint program". I have tried ...
0
votes
0answers
18 views

add object to farm properties from an event receiver

Can you add an object to farm properties from an event receiver on a list in a root site or a site collection? I have tried but even if im logged in as a farm admin it always errors out with a ...
2
votes
1answer
45 views

Does the ItemCheckedIn event fire when item is updated?

I can't find any documentation on exactly when the ItemCheckedIn fires. I know it does when a user explicitly checkes it in, but I thought it would also fire when an item was added, or updated, since ...
0
votes
1answer
31 views

How to deploy ItemAdded event receiver to the entire farm? [duplicate]

I have created an ItemAdded event receiver that is supposed to process new documents/files after they've been added to any document library in the farm - i.e., I'd like the event receiver to ...
0
votes
4answers
53 views

Deploy event receiver without associating with any list

I have an event receiver I developed with Visual Studio that I want to deploy. But in this case I want to deploy it without associating it with any list. (I add the event receiver to a specific list ...
1
vote
2answers
44 views

How to activate features on deployment

I have a package with several features all scoped at the web level. I would like to have all of these features activated once the solution is deployed. I see feature receivers, but don't see an ...
2
votes
1answer
34 views

Handling itemupdated calling itemupdating

I have a custom list (not document library) that i have attached 2 event receivers to. These are itemupdating and itemupdated. My itemupdating event receiver sets a value in a field and my ...
1
vote
1answer
15 views

Attaching Remote Event Receiver to Content Type

Looking through the SharePoint Client API I see no property which allows the attachmentment of a content type. I was hoping to attach a remote event receiver to a custom content type on the ...
0
votes
1answer
395 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
1answer
431 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 ...
2
votes
1answer
46 views

How can I tell in a Sharepoint 2010 event receiver if the list item was added in datasheet view or not?

I'm a novice Sharepoint developer, so please forgive what is probably a very simple question. I have an event receiver on a custom list in Sharepoint 2010. I need to be able to display custom error ...
0
votes
2answers
49 views

sp2013: error: Your changes conflict with those made concurrently by another user

I have an sp2013 portal. I have a custom contenttype and a custom list. I have an eventreceiver (ItemUpdating) which is updating a column in the current listitem. Sometimes I get this error. I think I ...
0
votes
1answer
41 views

Unable to get user field value in event receiver's afterproperties

I have a document library in which there is one field approver (multi - value). There is an event receiver for item updating of the document library that I want to validate user while changing the ...
0
votes
2answers
42 views

Insert data in a List without fireing the event receiver

I have this Situation: I've made a list and added an event receiver to it. This event receiver changes some fields and adds new data(automatically filled date etc.). The Problem: The client wants ...
1
vote
4answers
1k views

How to delete an item on ItemAdding

I want to performe some Action on ItemAdding. I have a Custom List that reacts on Item Creation. In particular on Item Adding performs some action using the After Properties.. If, at this level, i ...
0
votes
2answers
29 views

Concurrency and SharePoint - Sequence Number Generation

I have a dev question related to concurrency. Here's the problem: I need to generate a sequential reference number for each document uploaded to a specific document library. The numbers basicaly look ...
0
votes
1answer
46 views

Coding best practice display name vs internal name in itemUpdated event receiver

In an itemupdated event receiver, when referring to list fields, is it better to use the field's internal name, or its display name? Is there a clear guideline or best practice, or is this a ...
0
votes
1answer
557 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
2answers
1k 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
3answers
386 views

an event receiver does not allow to add item that already exists

i want an event handler for document library (itemadding and itemChekingIn) that does not allow to add a file to that document library that already been in there.does anyone can give me hint for ...
0
votes
0answers
18 views

Stop NewDocSet.aspx from redirecting on cancelwitherror

Is there a feature/flag/something that can cause newdocset.aspx for a document set to force redirect on itemadding/itemupdating over to an error page with my custom error messages? I'm not trying to ...
5
votes
1answer
53 views

Does Updated event always fire after Added event?

I have an interesting question about event receivers. I have long running ItemAdded event. But as soon as item is saved, another or the same user can edit it, even before async event finished. The ...
1
vote
2answers
92 views

Is it possible to, using an event receiver, change a filename before it is uploaded?

I was using a workflow to change file names to some text and the SP ID, but this has caused issues because the workflows can often take several minutes to complete. I would like to do this during ...
1
vote
1answer
784 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 ...
0
votes
1answer
448 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
2answers
63 views

Sandbox Event Receiver Not Working on SharePoint Online

I build an SharePoint 2013 Sandbox Event Receiver which works in my local on-prem dev environment. However, when pushing it up to my SharePoint Online tenant it does not work nor even fire at all. I ...
1
vote
0answers
40 views

Event Receiver ItemAdded not firing when uploading file via CopyIntoItems method of Copy.asmx web service

When I manually copy and paste the file into the library, the event receiver ItemAdded runs normally. But when the file is uploaded via web service it does not run. Any ideas? My code: public ...
0
votes
1answer
1k 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; ...
1
vote
1answer
33 views

During ItemAdding of parent list, assign lookup field of a child list

I'm attempting to create a projects/tasks lists. When a user creates "ProjectA", I want to create a list of tasks based on the template that was selected for that project. In general, everything is ...
1
vote
1answer
43 views

Add Content Type to existing List when associating Workflow

Using Visual Studio I have created a package for SharePoint 2010 that deploys a Workflow that creates Tasks of a custom Content Type Id. When I first deployed it, I noticed that Tasks were being ...
1
vote
2answers
2k views

Add Event Receiver on two custom lists?

So I have a question: I have an event receiver, that should be hired for a specific list. So I changed the ListUrl property on the elements.xml of the event receiver. But now I need the same event ...
2
votes
0answers
36 views

Sandbox ItemAdded Event Receiver on “Document Library”

I have a Document library whose only content type allowed is my own custom "Document Set" Content Type. My custom Document Set content type creates a number of sub-folders and and deploys files as ...
1
vote
1answer
62 views

Call event after document library created

I have kofax export connector which will create document library in run time. I have create my Document set pro-grammatically. I wanted to add my document set to the document library which is created ...
0
votes
3answers
197 views

Create Subsite in OFFICE 365

I want to create Subsites based on some custom list in OFFICE 365. It is one time job. I am planning to have one customlist which will contain title,template,inherit permision flag,inherit master page ...
1
vote
1answer
43 views

SP ProcessBatchData inside the Event Receiver, slow performance issue

I am writing an Event Receiver on a Document Library to create a new list from the uploaded excel file. it runs on ItemAdded() and ItemUpdated() event. Before calling a method to add new Items to ...
1
vote
1answer
17 views

Fire a workflow on item fetching

Is there a way to fire a workflow or event receiver for every item before its fetched from a list automatically? I need to update columns on every item every time a user enter the list or open a form. ...
2
votes
0answers
30 views

Is there a way programmatically I can check if the user wants to upload a file as new version?

We have a document library and we added an event receiver to move the files out of the root folder accordingly to our business requirements. I am having issues now because I am trying to check if the ...