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
331 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
377 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 ...
2
votes
3answers
76 views

Why is my app's UninstallingEventEndpoint never invoked during app removal?

I have a provider-hosted sharepoint app with an appmanifest.xml that looks something like this: <Properties> <Title>My app title</Title> <StartPage> ...
0
votes
2answers
165 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
1answer
8 views

Item Field returning value with hash character in Itemupdate

I am trying to get value of item field from the list. The field is a lookup field with integer value. When I am trying get the value it is coming like 9;#9 (shown below). But I need only 9. ...
1
vote
1answer
355 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
18 views

event receiver not firing event after multiple documents uploaded into document library in item updated event

I have an event receiver.On item updated event i am firing email.condition is like this: I have an document library with two Yes/No columns(i.e Notification & IsActive).If both these conditions ...
0
votes
0answers
18 views

Strange Datetime behaivour

I have a problem with an Event Rechiver. During ItemAdding() i set some datetime afterproperties. This is triggered in 2 ways. 1: When a user create a new list item. 2: When a scheduled job created ...
1
vote
0answers
14 views

Datetime AfterProperties value changed on save

I have written an EventRechiver that results in some strange behavior. I reacths to an Item beeing added to a list. This is done by both users trough UI and by a timer job. The ER sets some custom ...
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 ...
3
votes
1answer
74 views

SharePoint 2013 app uninstalling behaviour

I have been seeing change of behavior on O365 when app is uninstalled. Not sure if anybody experienced the same. Let me explain, App Uninstall behavior before: When app is uninstalled, SharePoint ...
0
votes
0answers
5 views

Rendering Template apply only on second deploy

SP2013. I have a custom rendering template for a Content Type in CONTROLTEMPLATES folder. Problem is that when I deploy solution by VS on a development machine this template doesn't show up on a form. ...
3
votes
2answers
2k 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
18 views

HttpContext in EventReceiver constructor is null

I'm trying to use SPUtility.Redirect in ItemAdding EventReceiver. And I'm trying to get HttpContext.Current in Event Receiver constructor, but it's null public class MyClass : SPItemEventReceiver ...
1
vote
1answer
450 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
314 views

Remote event receiver on sharepoint 2013 online does not work

I recently started to develop Sharepoint 2013 on 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
2answers
63 views

ItemUpdated not changing field values

I have a document library that should replace the Name column with the value from an Employee column. Code: public override void ItemUpdated(SPItemEventProperties properties) { ...
0
votes
0answers
21 views

Task list event handler not firing

I have created a project with two event receivers, one pointing to a custom list (id 100) and one pointing to a task list (id 107). The custom list handler runs perfectly but the task list doesn't ...
1
vote
1answer
365 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 ...
1
vote
1answer
472 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 ...
6
votes
2answers
804 views

How can I tell if a document is 'being published'?

I need to use the relevant event receiver to tell if a document is being published, is this possible? I will settle for has 'just been published' - i.e. I have no preference between itemupdating and ...
0
votes
1answer
555 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
2answers
23 views

Understanding ItemAdding event

I am trying to understand as to when this ItemAdding event fires. Does it fire when user has clicked "new document" button to upload a document library? Or Does it fire when user uploads document ...
0
votes
2answers
24 views

Event receiver CancelWithError

I need to show an error message during in the ItemAdding event from a SP2013 event receiver. I used this code in case of error: properties.Status = SPEventReceiverStatus.CancelWithError; ...
0
votes
1answer
299 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 ...
0
votes
1answer
12 views

How to automatically change the permissions of a document when is published?

I have a document library with document versions enable on a SharePoint 2013 site. In the library each document have its own independent permissions. Usually the permissions are 2 owners and 3 or more ...
-1
votes
1answer
27 views

Check if user changed list item permission in event receiver?

I need log changed permission action using an event receiver, how do I do that?
0
votes
1answer
626 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
24 views

How to define the ID for an EventReceiver in elements.xml?

I'm developing a custom SPWebEventReceiver for SP2013 the declarative way using the following elements.xml file: <?xml version="1.0" encoding="utf-8"?> <Elements ...
0
votes
1answer
68 views

How to create SPQuery by filtering date interval

I have a custom aspx form where I retrieve list items by filtering two values EventDate and EndDate. I have a realization but it returns nothing: DateTime eventDate = ...
2
votes
1answer
73 views

Office 365 use Visual Studio for Event Receiver or Timer Job

I'm using Office 365 small and want to know if I can use Visual Studio for Event Receiver or Timer Job?
3
votes
4answers
2k views

Event Reciever ItemAdded fired twice

I'm trying to do some treatement after creating an item but the treatement is done twice because in my code after creating the item, I'm updating it , so the event reciever get fired twice: first when ...
2
votes
1answer
34 views

Sandbox Solution filling up Resource Quota (SharePoint 2013)

So, I created a very simple Event Receiver that triggers on the ItemUpdating Event for Document Libraries. All it does is get the original file modified date and changes the SharePoint file modified ...
1
vote
1answer
25 views

EventReceiver is working on local site where code is written.But when I deploy its wsp on another site it is not working?

I have written Event Receiver for a list on my local site on its item added event in that event receiver it creates subsite under a top level site. And updates a url in the list. This functionality is ...
1
vote
0answers
24 views

Event Receiver Update List

I have a list (A) which contains these fields: Software, Quantity, Used, and Available. Fields Used and Available are hidden fields. Then I have another list (B) which contains a lookup field ...
1
vote
1answer
20 views

Updating + SystemUpdate()

I need to execute the SystemUpdate(true) in the event "UPDATING" to get the new item version field value. How can I do that without receive the message of conflict? public override void ...
1
vote
1answer
31 views

Event Receiver isn't being registered

I am trying to add an ItemAdded event receiver in a FeatureActivated event receiver (because it's a site scoped feature and apparently that means SharePoint will ignore anything I tell it and apply it ...
0
votes
0answers
9 views

How to open created item when completed workflow?

I have two list: Order and OrderDetailA, and OrderDetailB; and two manually start workflow which is used to copy item from Order to OrderDetailA or copy to OrderDetailB. When I created new item in ...
1
vote
2answers
78 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
0answers
23 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
148 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 ...
0
votes
1answer
20 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
0answers
40 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
55 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
45 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
0answers
7 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 ...
1
vote
1answer
359 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
15 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
39 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
653 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 ...