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

1
vote
0answers
87 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
543 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
75 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
389 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
0answers
58 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 ...
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
132 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 ...
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
254 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 ...
1
vote
1answer
34 views

Monotonically Increasing Counter

We need to do some calculation in an ItemAdding event receiver that uses a monotonically number. Because we need to use the ItemAdding event (rather than the ItemAdded event) we cannot use the item ID ...
1
vote
1answer
53 views

Find a specific field on a site and the set it to “Required” in a EventReciever

I have created a EventReciever that will be activated when a site gets created. This site have a announcement webpart. When they click on "add announcement", newform.aspx pops up as a dialog and there ...
1
vote
0answers
227 views

Content type inheritance and event receiver

I have defined in a VS project a custom content type "Parent". I want to let the user create (from the ui) child content type of this content type, while benefiting some shared behavior (auto filling ...
1
vote
2answers
115 views

ItemUpdated fires when no item is added

I have an ItemUpdated event receiver in a document library in SharePoint 2010. When I try to upload a document with a name that already exists in my library I get an error message "The specified name ...
1
vote
1answer
118 views

Getting exception on set default page programatically on feature activated in SharePoint-2010

my code on feature activated is public override void FeatureActivated(SPFeatureReceiverProperties properties) { using (SPSite SiteInUserContext = new SPSite((properties.Feature.Parent as ...
1
vote
1answer
389 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 ...
1
vote
1answer
711 views

Recurring Events in SharePoint 2010 - Incorrect “Duration”

Background: The company I work for has a regular SharePoint list with a custom ContentType (that does not inherit from a calendar list item) that it uses for Events. It then shows these using a ...
1
vote
1answer
306 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 ...
1
vote
0answers
321 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
0answers
66 views

Distinguish Event Receiver Firing From Web UI or From Code

Think of some event receiver methods like ItemAdded, ItemDeleted etc. How can I detect in my event receiver code if the item adding/deleting is being triggered from the web UI or from the object ...
1
vote
1answer
109 views

Adding EventRecevier in SandBox Sharepoint2010

This is Sample of my Code SPList list = new SPSite(siteURL).OpenWeb().Lists[listName]; SPEventReceiverDefinitionCollection eventReceivers = list.EventReceivers; SPEventReceiverDefinition ...
1
vote
1answer
315 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 ...
1
vote
1answer
147 views

InfoPath, and Calling a instation of Template InfoPath from Event Receiver

I want to call a form of InfoPath from Event Receiver. How Could I set a field infopath a Values, from Event Receivers to sets a Values on infopath fields which could I Validate and show or hide a ...
1
vote
0answers
90 views

Email not received in Document Library when Event receiver Added [closed]

Email not received in document library when Email event receiver is added to this library..
1
vote
1answer
200 views

Deleting SPListItem in event receiver - very long time

I have an event reciever with ItemDeleting action, in which i try to delete an item from another list (I cant realy use cascade delet behavior here, I need to do some stuff that requires the ...
1
vote
0answers
530 views

sharepoint 2010 list groups from event receiver to form or dialog box?

How can I get a list of groups in a form or dialog box to select one or more groups, and then assign permissions to the document? Here in this code: using System; using System.Security.Permissions; ...
1
vote
0answers
339 views

Set Record Declaration Settings programmatically

I created a feature receiver whereby on activation will activate and set certain features and its properties. One of that feature is InPlaceRecords. Below is my code in the FeatureActivated method:- ...
1
vote
1answer
40 views

An event to be fired on editing a file

As title says, I need an event to fire when a listitems file has been edited. I appreciate this isn't as simple as it having it's own event, which is why I've tried to make use of the itemupdating ...
1
vote
1answer
308 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
199 views

Library ItemUpdating - distinction between versioning of existing files, and changing metadata of existing files

I am currently facing challenges in distinction between updating an item, and creating a new version of same item. The ItemUpdating eventreceiver is hit in both cases. Requirements for the library ...
1
vote
1answer
130 views

How to prevent alerts from SPEmailEventReceiver?

I have been struggling with a small but irritating problem for a while now and suddenly I ran out of ideas. I have implemented an email event receiver in Sharepoint 2010. The event receiver creates ...
1
vote
1answer
98 views

List Event not Firing - Registered against List, Activated Feature

$web = Get-SPWeb "http://----/PWA/Test Project/" $list = $web.Lists["Risks"] $list.EventReceivers This shows 3 events; ItemAdded, ItemDeleted, ItemUpdated. Below is an example of one of them to show ...
1
vote
0answers
181 views

Publishing page is firing ItemUpdated event twice the first time it is edited

I have a custom SharePoint solution that creates an enterprise wiki site based on a word document of a particular format. I have an ItemUpdated event receiver attached to the Pages library for some ...
1
vote
2answers
158 views

Is there anyway I can find out if user uploaded multiple items in ItemAdded Event

I have a "ItemAdded" event, I want to check Number of documents uploaded if a user uses "Upload Multiple Documents" for uploading. Normally what happens is when a user adds a item they are taken to ...
1
vote
0answers
103 views

How do I prevent Office applications to update one of my SPListItem properties?

I have a document library in SharePoint whith a custom content type. There is one custom field that is set by an item added event receiver each time a new document is uploaded. My problem occurs when ...
1
vote
0answers
954 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 ...
1
vote
1answer
721 views

Why does my Event Receiver (sandboxed) not work on Sharepoint Online, but works perfect on premise

using System; using System.Security.Permissions; using Microsoft.SharePoint; using Microsoft.SharePoint.Security; using Microsoft.SharePoint.Utilities; using Microsoft.SharePoint.Workflow; namespace ...
1
vote
0answers
148 views

How to trigger event receiver on library when adding items to library through silverlight control?

I created an event receiver which triggers when an item added to the library.And it is working fine when i am adding items at library level(By clicking upload in ribbon controller of library).But the ...
1
vote
1answer
124 views

How to push a specific SPListItem through a workflow with code?

I would like to push a specific SPListItem to the final step in a State workflow, skipping all the intermediate steps (if a certain checkbox is checked). Currently, I have an event receiver hooked ...
1
vote
2answers
5k views

Event Receiver Not Firing

I have an event receiver using the VS2010 template for SharePoint 2010 and I have coded it the same way I have done many times. This time, though, it is not firing at all. It is attached to the list ...
0
votes
5answers
3k views

Event Reciever Custom Error Message Page Sharepoint List 2010

I am working on creating event receiver on a specific custom list using visual studio 2010. Below is the screenshot of the error message set on properties. ErrorMessage I'm interested in knowing ...
0
votes
3answers
1k views

How to redirect to another page using an event receiver?

I want to redirect to another page after an item is added to the list. I have referred many links and found the same alternative that is SPUtility.Redirect("https://www.google.co.in/", ...
0
votes
2answers
271 views

Event reciever (itemadded) sharepoint 2010

is there a way where we can get the link(editform.aspx) of item just added to the list-- in the itemadded method of the event receiver (Share Point object model)
0
votes
2answers
106 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 ...
0
votes
1answer
68 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
3answers
2k views

Debugging sandboxed ItemUpdated event receiver - breakpoints not hit

I'm trying to debug an ItemUpdated event receiver in SharePoint 2010. I add breakpoints to the code, and hit F5 in Visual Studio 2010. I click Attach when I'm prompted to attach to the process. Then, ...
0
votes
1answer
56 views

Create subsite in another site collection using event recievers

I am trying to create a subsite in another site collection using an event receiver on a list from current site collection. How do I do that? I have tried getting the context of the target site ...
0
votes
1answer
688 views

Error while creating Event Receiver

This is Sample of my Code SPList list = new SPSite(siteURL).OpenWeb().Lists[listName]; SPEventReceiverDefinitionCollection eventReceivers = list.EventReceivers; SPEventReceiverDefinition ...
0
votes
3answers
349 views

How to: Create an Event Handler Feature

I was testing the code provided in below MSDN Link: http://msdn.microsoft.com/en-us/library/ms453149.aspx But I got compile time error as "Error1Error occurred in deployment step 'Retract Solution': ...
0
votes
2answers
872 views

List event Item Updating is not firing

I have added a list item updating event to a document library but I cant see it running please tell me how to check if it is running, I also have put a log entry in the event receivers code but cant ...
0
votes
4answers
391 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 ...