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
114 views

deployment issue - List Event not firing

I'm facing 2 problems when I'm deploying my solution in QA environment. Scenario 1: I have written a feature (Feature 1) to create custom list (say List 1). When feature 1 is activated, List 1 is ...
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 ...
0
votes
2answers
792 views

Object reference not set to an instance of an object inside Event receiver in Form library

here is the problem. I have a form library that uses Infopath as form. It has an event receiver. This was done by someone else. I was trying to get the beforeProperties, afterProperties or ListItem ...
2
votes
0answers
515 views

Event Receiver update document content on ItemUpdating

I am trying to update a document in the item updating event receiver, but I keep getting the error: "The file IOF/This is a.docx has been modified by ....." I have the following code in my SP 2013 ...
1
vote
3answers
871 views

Problem adding sharepoint group in list item on itemupdated event

I have this code below and I am trying to add a sharepoint group to an item in a list in itemUpdated event handler. the problem is that the update never happens. The problem is with this line of code ...
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
252 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 ...
2
votes
1answer
324 views

Sharepoint 2010 hosted web service works in browser but not event receiver

I have written a RESTful web service that writes calendar events from Sharepoint to personal exchange calendars. The web service is hosted in sharepoint. When I make the call using javascript from the ...
0
votes
1answer
103 views

Populating list columns when an event is fired in SharePoint 2010

I have created a SharePoint2010 list with 20 columns. which has 2 key columns cid and tid of the user. There is an application, whenever it is initiated a new row is created in the Sharepoint list ...
2
votes
0answers
344 views

List event receivers not triggered after quick editing/grid editing

I have a custom Sharepoint 2013 list with event receivers attached to it (adding, updating, deleting). However, it looks like the event receivers are not triggered when the user is adding/editing in ...
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
2answers
337 views

Change displayname of a List with event receiver

I need to change the displayname of a list using "ItemUpdating". The source of the new name is the "Title"-field of the item which fires the event. Is this possible? I tried it with: if ...
0
votes
0answers
115 views

Delete all list permissions and set Author as contributor (Event Receiver)

I wrote an Event Receiver on ItemAdded to automatically create a calendar (Template 106) from a ListItem (Title => Name of calendar). So far so good... Problem of all is, that I want to delete ALL ...
1
vote
2answers
522 views

EventReceiver for 'Pages' library on multiple languages

I've made a EventReceiver that i want to attach to my Pages library. It will create a folder on a given Image Library for event pictures. I can say on the elements.xml of the EventReceiver the list ...
0
votes
4answers
1k views

Getting ItemUpdating Even Receiver to do the same thing as ItemAdding

I have a library that allows multiple folder content types. I am grouping the folders by content type but I don't want the group heading to say Content Type: whatever. Instead, I created a hidden ...
3
votes
3answers
1k 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 ...
1
vote
2answers
292 views

SPListItem.Delete or SPListItem.Recycle, which one was called?

In an ItemDeleting event receiver, is there a way to find out whether SPListItem.Delete or SPListItem.Recycle was called? I would like to write different things to my log here...
0
votes
1answer
157 views

Custom Event Reciever For Document Library(sharepoint 2010)

I have a month column which is a choice column in my document library in the format specified below.. For eg. Jan 2013 I have the following requirements 1. The month dropdown should always have only ...
1
vote
2answers
2k views

Cannot associate event receiver with a particular document library

I am trying to develop an Event Receiver for a document library titled Temporary. I have modified the Elements.xml document to look like this: <?xml version="1.0" encoding="utf-8"?> ...
1
vote
1answer
396 views

ItemUpdating event not firing on folder rename w/ Windows Explorer

I have an Item Updating event receiver that needs to fire when a document library folder is renamed. Everything works perfect when a user renames the folder with the SharePoint UI. However, if ...
0
votes
3answers
190 views

Event Receiver when document body/content is updated

What event receiver is triggered when the content of an existing Word document is updated/changed? ItemUpdated works when the properties on the document are updated (e.g. changing a content type ...
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
1answer
279 views

How do I run Microsoft Open XML code to extract data from a Word document in SharePoint 2010

I have a need to extract arbitrary data from a Word document (docx) that has been uploaded into a SharePoint document library and place it into a column in the document's list record. As far as data ...
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 ...
0
votes
1answer
144 views

Do event receivers have a file handling limit?

I created an event receiver inheriting from SPItemEventReceiver for document libraries that moves files to specific folders and changes some metadata columns that I've added to them. I created a ...
2
votes
0answers
206 views

custom email event receiver doesn't accept .msg file attachments

Environment is Sharepoint 2010. The issue I'm running into is essentially the one that occurred here: ...
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
388 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
3answers
2k views

Implement check-in check-out on list items?

I want to implement check-in/check-out functionality on a list in sharepoint 2010. What I want is, when a person is updating a list item, no one else shuld be able to edit that particular item and ...
1
vote
1answer
3k views

Change name in ItemAdding event receiver or create a new Item

I have several custom folder types such as Year Folder or Quarter Folder. When the user creates a folder of this type he enters the name and selects an item from a dropdown (year etc.). 90% of the ...
1
vote
1answer
83 views

Event Handler before the item add screen pops up for updating choice list

I have a list person with items and one of those items is of the type "choice". For example: Name (text), City (text), Favorite Artists(choice list). Well I want to bind the title values of every ...
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 ...
11
votes
1answer
2k views

Is Calling base.ItemUpdating(properties); necessary?

In an event receiver, is it necessary to call base.ItemAdding(properties);, base.ItemUpdating(properties);, etc. at the beginning of your event handler? I've seen people arguing that it isn't ...
1
vote
1answer
706 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 ...
2
votes
1answer
514 views

Why Item Updated and Item Added trigger together when we add a item to list (document library)

I have gone through hundred of articles over months but never understood as what could be the reason Item Updated and Item Added trigger together when we upload a item, even though if you try ...
1
vote
1answer
304 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
402 views

In MOSS 2007, what does event ID 6644 means?

In SharePoint 2010, 6644 refers to error related to Event Receiver. In MOSS 2007, is this the same? MSDN doesn't specified what type of error this event id refers to. In the event log, I got the ...
0
votes
1answer
404 views

Move files to a folder using event receiver

Hi I have an Infopath form Library and i want to add the forms that are being submitted to a folder in the same library according to the information I need to do this using an event receiver. Can ...
0
votes
1answer
38 views

A Complex Permission Structure and A Question

Suppose that i have two lists OFFICES [COLUMNS: OFFICE NAME (Text), OFFICE MANAGER (User), AND OTHER OFFICE DETAILS ETC...] EMPLOYEES [COLUMNS: EMPLOYEE NAME(Text), EMPLOYEE OFFICE (Lookup), AND ...
1
vote
0answers
320 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
295 views

Possible to attach an event receiver to the list of user alerts?

There's seemingly loads of ways of overriding the OOTB e-mail notifications for creation and deletion of user alerts - can't you just attach an event receiver to the alerts 'list' (is it an SPList?) ...
0
votes
2answers
492 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 ...
6
votes
1answer
1k views

SPListItem.SystemUpdate(false) is still triggering alerts

Environment: SP2010 Enterprise, VS2012, c#, full server access Simple question... I'm using a console app to create sub-folders in a document library based on user input, then calling ...
1
vote
1answer
741 views

Event manager error after upgrading my WSP via Update-SPSolution

So I just deployed this .wsp to production and I've identified a tiny bit of logic that needs tweaking in an event receiver. I'm considering compiling a new .wsp package, and then running an ...
1
vote
1answer
289 views

Choice field event handler

I have a drop-down choice field in a custom list I'd like to add an event handler that fires when a value is selected from the drop down. I'd originally attached to the itemupdating event but ...
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
231 views

How do I get the current Editor of an Listitem while ItemUpdating?

How can I get the current Editor of an list Item in SharePoint 2010 during ItemUpdating? Problem is properties.AfterProperties["Editor"].ToString() throws and Exception cause it's null. This ...
1
vote
2answers
426 views

Recycle bin - documents deleted

I have recycle on my site collection. There is also and event receiver which deletes some documents from library in ElevatedPrivileges block ( as System account). OnItemDeleting it's searching for ...