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
1answer
45 views

List Item sending an email on ItemUpdated previous confirmation

I'm working on a Sharepoint 2010 List trying to send an email with a custom Even Receiver, on Item Updated. The List Item has to send an email when some fields are filled, other email when other ...
1
vote
0answers
20 views

How to display error message on the same page even with attachment [duplicate]

I have been trying to figure this out for days with no luck. I am working on Sharepoint 2013 application. In my application, the fields will be validated and display the error if the input is wrong. ...
0
votes
1answer
26 views

Event Receiver for View Add/Edit?

Is there such a thing? It's not listed as a receiver http://msdn.microsoft.com/en-us/library/office/gg749858(v=office.14).aspx but I'm hoping I'm missing something. Am I limited to over-riding the ...
0
votes
1answer
60 views

Use one event receiver on two lists in different site collections

This is my scenario: I have one Web application with 2 site collections. Then I have 2 lists ('list1' and 'list2' are in different site collections). The two lists however are identical (with the ...
0
votes
2answers
49 views

How to detect when a new item version is added in an event receiver?

Is there a way to detect (in C#) if a new item version was added in either ItemAdded or ItemUpdated event? I would only like to execute some code when either new item is added, or a new version of the ...
0
votes
1answer
50 views

GacDeployment does not show any results

following scenario. I have a structure that looks as follows: WebApplication (App) --> SiteCollection (SiteCol) --> Site (Site) --> WebSite (Web) --> List I developed an eventreceiver which should ...
0
votes
1answer
106 views

Set approval status of a list item to pending while retaining the approved version

I have a site with multiple lists which are linked to each other. When I update an item(edit / approve) in one list, the approval status of the corresponding items in the other lists also should be ...
0
votes
0answers
148 views

Event Receiver not firing when item is published/approved

I have the below code for a custom event receiver to fire when an item is either updating, updated and checked in. But when the item is published to a major version and the approval status changes to ...
1
vote
2answers
1k views

Get selected value of dropdown choice list item

I'm trying to get the selected value of a dropdown list item. Nothing works. SPFieldChoice dropdown = list.Fields["Admin Guide"] as SPFieldChoice; var choices = dropdown.Choices; var selection = ...
1
vote
1answer
337 views

How to programmatically hide a field from edit form based on current user permissions

I have an event receiver that sets SPField values based on certain user choices. I'm trying to show/hide one field based on the current user's signed in permissions, but only when the list item is ...
3
votes
1answer
209 views

Is it possible to wait until my file is uploaded in document library?

I have created a document library and I have applied an Item Added event receiver to that library which will copy that file to another library and I have added that library as a mapped drive to my ...
0
votes
0answers
256 views

ItemUpdated Event Receiver firing twice

I am having problems with an Event Receiver made to target Picture Libraries (ListTemplateId="109" in Elements.xml). I have tried to follow the advice I have found online to no avail. Check out is ...
0
votes
1answer
568 views

When item added event receiver fires if we upload file using explorer?

I have a document library in which I have attached two event receivers. Item Added. Item Updated. My event receiver definition is: <Receiver> ...
0
votes
1answer
42 views

Call event receiver for many custom document library

I have many custom document libraries. I would like to create and attach an event receiver for all these Library. With <Receivers ListTemplateId="101"> they don't work. Any help is appreciated
1
vote
2answers
86 views

Event receiver firing even though user doesn't have permissions

Scenario: SharePoint 2010. A list is configured with this setting turned on: "Create items and edit items that were created by the user". Users can only edit or delete their own items; if they try ...
0
votes
2answers
258 views

SharePoint 2013 Before and After Properties ALWAYS null

I'm unable to get properties.AfterProperties and properties.BeforeProperties. public override void ItemUpdating(SPItemEventProperties properties) { Validate(properties); ...
3
votes
1answer
163 views

Custom master page will not locate spfont file

I have a project that has a custom master page created from seattle.master. The only change in the .master file is the addition of a <SharePoint:ScriptLink> tag pointing to a copy of d3.min.js ...
0
votes
0answers
34 views

Stop NewDocSet redirection on error

Is there a way, flag/property/bribery, to stop the code-behind in newdocset.aspx from redirecting on error? I have been trying to get the error to appear on newdocset.aspx; the same way as ...
1
vote
2answers
135 views

ItemUpdated not firing when document is added to non-default document library

I have an item receiver that implements ItemUpdated() to process an item after it has been uploaded to a document library. Everything works fine if I add documents to the default "Shared Documents" ...
0
votes
2answers
220 views

How to deploy an EventReceiver which writes to SQL Server correctly

following scenario. I have a client machine on which I have all the permissions for: SQL-databases (db_owner) Full access to a Sharepoint Application. Created a Sql-account (db_owner) and included ...
0
votes
1answer
61 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 ...
1
vote
1answer
329 views

refresh page after event receiver item updated

I'm trying to refresh the page after the event itemupdated is fired. I've tried at the end of itemupdated without success properties.Status = SPEventReceiverStatus.CancelWithRedirectUrl; ...
2
votes
1answer
98 views

Recursive call for SPListItem Update method when called from a event receiver ItemUpdated

I have fallen in a serious problem about the SPListItem Update method. When I make a event receiver to intercept SPListItem change or update with SPItemEventReceiver ItemUpdated method, the event is ...
2
votes
1answer
69 views

How to rename file after saving from Word

I need to rename document after creating from MS Office Word. I've created EventReceiver OnItemAdded where I am trying to change "FileLeafRef" field: public override void ...
2
votes
1answer
89 views

SPListDataValidationException in an event receiver on a task list with Overdue tasks

I have a task list called Finance Department Tasks on this task list i have created an item updating event receiver which checks if all fields in the task list are filled and then sets the task status ...
0
votes
2answers
64 views

creating group programmatically

I'm trying to create a new group by event receiver feature with this code, but when I deploy it nothing changes public static void CreateSubSiteGroup(SPWeb web, string groupName, string ...
2
votes
1answer
37 views

Content type eventhandlers gets bound to list

I have a custom parent content-type on which I apply 6 event-handlers. I then have 24 content-types based off of the parent content-type - thus inheriting the 6 event-handlers. - All defined in XML I ...
0
votes
1answer
89 views

Event receiver Causes Problem while adding items to a list

I have created Visual Web Part which adds items to a X list.But while adding item to it, I am getting the following error once Item.update() hits in Visual studio . is it because of Event Receiver ...
1
vote
1answer
116 views

under which account does event receiver code run?

I would like to know under which account does event receiver code run? Also suppose event receiver is ran on item added event that creates an item in another list. Then what will be the created by ...
0
votes
1answer
251 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
194 views

Eventreceiver when item added through Office

I have a weird problem. I created a content type in Visual Studio 2012 for SharePoint 2013 with some metadata fields, a document template (word) and deployed it to the content type hub. The content ...
1
vote
1answer
56 views

Remote event receiver setting LastModifiedBy to “SharePoint Program”

I have a remote event receiver, on a list, that fires every time an item is updated, and it works fine. However the "Last modified by"-field on the item is set to "SharePoint program". I have tried ...
0
votes
0answers
27 views

add object to farm properties from an event receiver

Can you add an object to farm properties from an event receiver on a list in a root site or a site collection? I have tried but even if im logged in as a farm admin it always errors out with a ...
2
votes
1answer
185 views

Does the ItemCheckedIn event fire when item is updated?

I can't find any documentation on exactly when the ItemCheckedIn fires. I know it does when a user explicitly checkes it in, but I thought it would also fire when an item was added, or updated, since ...
0
votes
1answer
301 views

How to deploy ItemAdded event receiver to the entire farm? [duplicate]

I have created an ItemAdded event receiver that is supposed to process new documents/files after they've been added to any document library in the farm - i.e., I'd like the event receiver to ...
0
votes
1answer
82 views

Security trim list-items based on a session variable

I have created a session variable. And have created a site column that sets a flag that corresponds to that session variable. I would like to hide/show list items across any list utilizing this site ...
2
votes
1answer
161 views

Handling itemupdated calling itemupdating

I have a custom list (not document library) that i have attached 2 event receivers to. These are itemupdating and itemupdated. My itemupdating event receiver sets a value in a field and my ...
0
votes
4answers
776 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 ...
2
votes
1answer
97 views

How can I tell in a Sharepoint 2010 event receiver if the list item was added in datasheet view or not?

I'm a novice Sharepoint developer, so please forgive what is probably a very simple question. I have an event receiver on a custom list in Sharepoint 2010. I need to be able to display custom error ...
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 ...
1
vote
1answer
55 views

Attaching Remote Event Receiver to Content Type

Looking through the SharePoint Client API I see no property which allows the attachmentment of a content type. I was hoping to attach a remote event receiver to a custom content type on the ...
1
vote
1answer
663 views

Unable to get user field value in event receiver's afterproperties

I have a document library in which there is one field approver (multi - value). There is an event receiver for item updating of the document library that I want to validate user while changing the ...
0
votes
2answers
145 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
2answers
67 views

Concurrency and SharePoint - Sequence Number Generation

I have a dev question related to concurrency. Here's the problem: I need to generate a sequential reference number for each document uploaded to a specific document library. The numbers basicaly look ...
0
votes
1answer
78 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 ...
5
votes
2answers
230 views

Does Updated event always fire after Added event?

I have an interesting question about event receivers. I have long running ItemAdded event. But as soon as item is saved, another or the same user can edit it, even before async event finished. The ...
1
vote
2answers
279 views

Is it possible to, using an event receiver, change a filename before it is uploaded?

I was using a workflow to change file names to some text and the SP ID, but this has caused issues because the workflows can often take several minutes to complete. I would like to do this during ...
0
votes
2answers
693 views

Sandbox Event Receiver Not Working on SharePoint Online

I build an SharePoint 2013 Sandbox Event Receiver which works in my local on-prem dev environment. However, when pushing it up to my SharePoint Online tenant it does not work nor even fire at all. I ...
1
vote
0answers
84 views

Event Receiver ItemAdded not firing when uploading file via CopyIntoItems method of Copy.asmx web service

When I manually copy and paste the file into the library, the event receiver ItemAdded runs normally. But when the file is uploaded via web service it does not run. Any ideas? My code: public ...
1
vote
1answer
221 views

During ItemAdding of parent list, assign lookup field of a child list

I'm attempting to create a projects/tasks lists. When a user creates "ProjectA", I want to create a list of tasks based on the template that was selected for that project. In general, everything is ...