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

How to update calendar item created by an other list?

Appreciate any thoughts on this: A user edits an existing list item to pick a date to select a project deadline. A custom workflow, initiated by that item change, takes that date and project title ...
1
vote
0answers
55 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 ...
0
votes
1answer
461 views

redirect to page after itemadding in list withlong run operation

after many checking about redirecting to page from event recievers I understood that my best option it to di it from itemadding event and not itemadded. that does not means that I can neglect the ...
2
votes
2answers
267 views

Event Receiver site creation

I've got this eventreceiver that fires after an item has been added to a list. The eventreceiver creates a subsite from a template I created myself. The only problem is, every first time I try to add ...
0
votes
1answer
30 views

Changed event content type at parent now existing calendar lists content types are _hidden

I am new to SharePoint and I changed the event content type at the parent level. Now existing calendars list content types groups are _Hidden. The calendars also do not work now. Is there a way to re ...
0
votes
2answers
50 views

I want to execute workflow when new item is inserted

private void codeActivity1_ExecuteCode(object sender, EventArgs e) { SPSite objsite = SPContext.Current.Site; using (SPWeb objWeb = SPContext.Current.Web) { ...
1
vote
4answers
786 views

The security validation for this page is invalid error trying to add sharepoint approval workflow to List in ListAdded eventreceiver

What I am trying to do is to attach the OOTB sharepoint workflow [Approval Sharepoint - 2010] to each and every document library that ever gets created. To accomplish this I created a List Added event ...
2
votes
2answers
541 views

Access Denied when trying to set formdigestsettings in a list event receiver even when logged in as Farm Administrator account

I am trying to set the formdigestsettings to false within an event receiver (sharepoint 2010). So far I have tried to a) run the code with elevated privileges public override void ...
0
votes
0answers
135 views

timeout >1 event receivers

I have this custom list in my sandbox solution and when someone adds an item to the list the synchronous event receiver method itemAdded will call the spweb.webs.add method and adds a website. Now ...
0
votes
0answers
128 views

Event Recevier ItemAdded/ItemUpdated and Custom Workflow with Word Automation Service

I have created one visual webpart to convert selected word document to pdf using word automation service. Pdf is created successfully on each time when WAS timer job runs. I know we can not retain ...
0
votes
1answer
52 views

Remove entries from dbo.EventReceivers

Can I safely remove Entries in dbo.EventReceivers ? The Problem is that when i'm deploying a Solution i get on the Feature Activation many Errors in the SharePoint Logs like: ...
1
vote
1answer
245 views

Event Receiver - Cannot access item from Document Library if the user changed the name

I have a library, that has versioning enabled. On that library is an event receiver that does stuff, on ItemUpdated :) Ok, if the user uploads a document, and does not rename the document during ...
0
votes
1answer
318 views

EventReceivers not firing at all

I wrote some code to do some things before and after an item is added to some lists. The solution is sandboxed. I have checked and confirmed, through power shell, that the event receivers are bound ...
0
votes
2answers
107 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
789 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
100 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
590 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
390 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
748 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
203 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
33 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
238 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
91 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
246 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
43 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
302 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
113 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
371 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 ...
2
votes
3answers
857 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
231 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
121 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
1k 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"?> ...
0
votes
1answer
261 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
163 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
173 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
215 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
108 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
137 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
189 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
110 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 ...
0
votes
1answer
297 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
2k 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 ...
9
votes
1answer
1k 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
550 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
369 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 ...