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
2answers
36 views

AppInstall remote event is called multiple times

When developing provider hosted apps and testing in SharePoint Online, I've noticed that my AppInstalled remote event is often triggered 4 times when installing the app in site content. Here is an ...
0
votes
1answer
518 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 ...
0
votes
0answers
16 views

sharepoint alert filter not working on first alert only then filtering is ok

have a strange behaviour with alerts on my sharepoint site. I have a document library where i want to add alerts to specific users when adding,updating,deleting folders or documents. Alerts must not ...
0
votes
1answer
147 views

Event Receiver for two lists. When inserting in one List it updates the second list

How do I add an Event Receiver to two lists? One must be updated when an Item is inserted in a second list. I used public override void ItemAdding(SPItemEventProperties properties) But what should ...
1
vote
1answer
441 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
19 views

How do I know whether an Event Handler has already been attached to a SharePoint O365 list?

I have a SharePoint O365 site which has a custom list named ReportMetadata. There is an event receiver for this list for ItemAdded event which will take the image from the attachment column of the ...
0
votes
1answer
304 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 ...
1
vote
1answer
336 views

SP2013 : Generate an autoincrement identifier (YYYYMMDD9999) based on creation date for a document

I need to generate a record id for a document, with format YYYYMMDD9999 where 9999 is a autoincrement number per day. This id must of course be unique, but i have no idea how to be sure to avoid ...
0
votes
0answers
19 views

Renaming document gives file not found on uploaded documents

Im trying to do a seamingly simple task in SP 2013. when the user either Creates a new doc (Ribbon>Files>New Document) or Uploads a File i want them renamed to for example ...
1
vote
0answers
27 views

Does changing Item-Level-Permission trigger ItemUpdated/ItemUpdating in Event Receiver?

First of all: I know that setting item-level-permissions are bad :) I just wonder: When I created an Event-Receiver that set per-item-Permissions on the ItemAdding-Event: Will this trigger the ...
0
votes
0answers
13 views

Event Receiver and workflow error

I have an event receiver that checks out the document when an item is added, updated or checked in. The items require content approval so I am using a workflow for this. The receiver works when the ...
0
votes
1answer
23 views

Rename Document Set item while creating - problem with page redirection

I need all document set items to have following name: " - My Doc Set Item". So I added following code to ItemAdded Event Receiver: properties.ListItem["FileLeafRef"] = ...
0
votes
1answer
1k 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
0answers
6 views

Strange ListItemCollection behavior

I made a feature with an ItemAdded eventreceiver. The feature creates two lists and adds a list item to one of the lists. After I activated the feature I looked at the lists and the one list that ...
0
votes
1answer
561 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
1answer
290 views

Sharepoint modal popup don't shown when the Infopath form are on the site

I tried to add Infopath form on my project, but when I add the Infopath form some of PopUp which are corelated with Infopath and shows errors od data didn't shown What should I do to shown A Modal ...
1
vote
2answers
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
1answer
332 views

Remote Event Receivers Troubles

So I've been working with the remote event receivers for Sharepoint 2013. I'm working with having them connect to a local IIS server to accept the inbound events as the Visual Studio tools make it ...
0
votes
0answers
11 views

List Synchronization in Sharepoint

I'm running Visual Studio 2010 with SP 2010. I was tasked with creating a setting page (within Site Action dropdowns). On that page I will select 2 different lists and allow them to synchronize with ...
0
votes
0answers
27 views

Sharepoint Designer 2013 object reference not set to an instance of an object

I have an event receiver in two list: - List A: ItemAdding, ItemAdded, ItemDeleting, ItemUpdating - List B: ItemAdding, ItemAdded, ItemUpdating In case, the event feature not active, we can edit 2 ...
4
votes
1answer
607 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 ...
0
votes
1answer
1k views

How to get and set term store field in the ItemUpdated event receiver

I am using sharepoint 2010. I have a document library which is using some custom content type. This content type has 2 custom fields which are termstore fields. These are the names of the fields: ...
1
vote
1answer
425 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
28 views

List item event receiver firing when list is modified

If I have an event receiver that handles the item added event, it fires whenever the list is modified. While debugging the event we see that it is firing over a non-existim item (properties.ListItem ...
1
vote
1answer
290 views

remote event receiver on sharepoint 2013 online does not working

I recently started to develop Sharepoint 2013 to my office 365 account. The problem is that remote event receivers which I attach to deploying application do not work. I mean that they should listen ...
0
votes
1answer
313 views

copy an event receiver to a different server

My work is requiring me to create an event receiver for an itemAdding event for an existing list on a Sharepoint Server. My problem is that while I have access to a Sharepoint Server, I do not have ...
0
votes
1answer
29 views

Event receiver on user log in

I'm trying to make a feature to assist with user provisioning. Our users don't exist in our domain until they register, at which point they're sent directly to SharePoint. I'm trying to populate ...
0
votes
1answer
35 views

how to execute PowerShell script inside an event receiver from sharepoint online

I want to execute a powershell script from an event receiver. The event receiver is triggered whenever an new item is added to my custom list in sharepoint online site.
0
votes
2answers
32 views

SharePoint Folder name and item count in SharePoint Folder in Event Receiver SharePoint 2013

I have few SharePoint Folders under Document library(not SharePoint List) in SharePoint 2013. When i added document(Event Receiver) in SharePoint folder, i require few values called SharePoint Folder ...
1
vote
2answers
497 views

ItemAdded event not firing after document conversion in drop off library

I'm trying to build events for a drop off library in a records centre in order to convert Word docs to PDF using the Word automation service. The conversion event files on ItemCheckedIn, and works ...
1
vote
1answer
333 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 ...
4
votes
3answers
3k views

How to add event receivers to all the lists in a site collection?

What is the best practice around adding event receivers across all the lists in a Site Collection?
0
votes
0answers
13 views

How to add color to calender in programatically using event receiver?

When ever an item is added into the calender using event receiver 2012. It need to check category column values based on selecting category color should change in sharepoint2013. Example:-If ...
0
votes
2answers
21 views

Event Receiver Timing?

I have an event receiver that listens on three lists. When I save Data in my applications, about 7 elements are changed, so the event receiver has to start 7 times. Inside the ULS-log I can see the ...
1
vote
1answer
1k views

List ItemUpdated Event not firing when updating item from code

I have a problem with my eventreceiver. It is set to fire on updating item from a list, and works very good when I update that item from Sharepoint's web UI. However I have some code that goes through ...
0
votes
1answer
37 views

Event Receiver for custom List and Document Library

What is the difference between Event Receivers for custom lists and a document libraries? The Document library Events are firing even when we select a custom list event receiver. What exactly is the ...
0
votes
3answers
1k 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
33 views

How to get absolute previous url in event receiver?

I have a root site list which I am displaying on several sub-sites using CQWP based on a custom filter and entering the list values frm sub-sites itself to the root site list. So I am trying to ...
0
votes
2answers
31 views

Event reciever on item updated do not start when item is updated trough a workflow

When an item is updated maually the event reciever starts and work as expected. But when the item is updated through a SharePoint Designer Workflow, nothing happens. There is nothing about this in the ...
1
vote
3answers
45 views

which one is better considering performance, workflow or event receiver?

Using events like ItemAdded, ItemUpdated which one has the good performance on custom list. What can be preferred considering there are large lists?
0
votes
0answers
13 views

Before ItemCheckingIn

I am trying to force users to tag their documents so I have created a custom content type with a required managed metadata field (department). I would like to trap the check in even so I can prompt ...
0
votes
2answers
519 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
2answers
61 views

ItemAdded Event Receiver on Explorer View Firing Multiple Instances when Moving Item

I have an event receiver which works fine (triggering only once) when I drag and drop a file to a document library. It also works fine using the upload button, it will trigger twice as there are two ...
0
votes
0answers
87 views

Event receiver not firing Document Library

I have a local development environment in my VM.(SharePoint server 2013 SP1,Visual Studio Ultimate 2013-update3). I'm trying to add an event receiver to a document library on ItemDeleting. Deleting a ...
1
vote
1answer
15 views

How to handle DeleteItem in external list

We have an external list bound to data source by the WCF service. It displays a metadata of "tasks", and for every "tasks" we have in another document Library a special folder. When user selects ...
1
vote
3answers
145 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
0answers
12 views

Not able to debug events

I am trying to download file / items when they are uploaded / added by an external application to SharePoint Document library. I am able to debug ItemAdding Event, depending on condition ItemAdded ...
0
votes
0answers
22 views

why file.move fires itemadded event in an event receiver and creates a new file if I click on save button two times?

I have an event receiver where I change the name of the file,it works right but If I click two times the record button (this is used in an infopath form) a new item is created and an itemAdded event ...
0
votes
2answers
470 views

Add WebPart to publishing page in Synchronous ItemAdded Event Receiver

I'm trying to add a webpart to a publishing page after the page is created, so I've created an Event Receiver, the problem is, if I make the Event Receiver Synchronous (As it should be) the code ...
2
votes
1answer
56 views

SharePoint Document Library document delete

Please suggest your solution for the following scenario: A user deletes the document from document library and an e-mail has to be triggered to the admin notifying the information about the document ...