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

Event receiver not firing when item added by workflow

event receiver not firing when item is added by workflow. Its working perfectly when we manually add item to list. I am using SP Designer 2013. When we add item through workflow, it shows that item is ...
0
votes
0answers
17 views

Feature deactivation error

I have a chain of features that are connected with a master feature. So when I activate, deactivate master feature on the farm, others get activated sequentially. Now this is giving an error with a ...
1
vote
2answers
64 views

Best practice for autonumber

What is in SharePoint 2013 on premise the best way to create an autonumber system? It's for an expense note system and it should be nice to have something like 2014/0001. I know there are different ...
1
vote
1answer
38 views

Debug SharePoint 2010 Feature Event Receiver Remotely

I'm attempting to debug a SharePoint 2010 event receiver remotely and I'm running into a strange scenario. I'm able to deploy the code via PowerShell to the remote server and view the remote server's ...
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
1answer
76 views

Handling events for all event receivers fired more than once in code

Within an item-adding event, suppose if we write code that creates new item, then item adding will fire twice. Same is true for item-added, item-updating, item-updated, etc. In such cases how can ...
1
vote
2answers
424 views

Handling ItemUpdating event receiver firing more than once

The reason why item-updating event receiver fires twice in case of document libraries is because of check-in/checkout. Also it can fire twice in case of doc library/list if we are updating the ...
0
votes
2answers
95 views

Checkout event receiver

I am using the below code to checkout the document in a library when an item was updated. The library has versioning and content approval enabled. My problem is that when you check in the document ...
2
votes
1answer
45 views

Event Receiver for Social Features

Are there any such things as event receivers for social activities in SharePoint 2013, e.g. when a user likes or rates an item? If not, are there any other ways to execute custom code when events like ...
0
votes
2answers
76 views

How do you decide the feature scope of event receiver?

We have event receivers for List, List field, List items, Web, Site and List email. How do we decide the feature scope of the event receivers? Is it best practice to set it to sitecollection or web ...
4
votes
1answer
65 views

Synchronous ItemAdded event. Do I need to explicitly call properties.Dispose()?

We have a SharePoint 2010 On-Prem solution. I have an ItemAdded event receiver which has been made synchronous using the Synchronization property. Now, when this event receiver fires, I have used the ...
0
votes
1answer
96 views

Change a property in an ItemUpdated event receiver

I have a very simple code but I can't change a property in an ItemUpdated event receiver public override void ItemUpdated(SPItemEventProperties properties) { base.ItemUpdated(properties); ...
0
votes
0answers
26 views

Get reference to web and list in workflowstarted() and WorkflowCompleted() event receivers

I am trying to write event receivers for WorkflowStarted and WorkflowCompleted events for workflow. I want to access the current web, list, Item reference from this method. I wrote the following code: ...
0
votes
1answer
25 views

Document Library event reciever only firing for newly created libraries

I have added a new event reciever which is supposed to work on all the document libraries present in the site. Now the problem is that it is only working for the libraries that are created after the ...
0
votes
0answers
21 views

Event Reciver on SP2013 - weird behaviour handeling error

I have an event receiver(ItemDeleting) that prevents an item deletion with the following code: properties.Status = SPEventReceiverStatus.CancelWithError; properties.ErrorMessage = ...
1
vote
2answers
59 views

how to read data from a document when uploaded to library?

Suppose we upload a word doc to a document library. Is there any way we can pick some data from the document and auto generate the columns of the library? One way would be to use item added event ...
0
votes
2answers
76 views

Feature removal without deactivation

My project had a feature, and on activation of this feature, I was binding an event receiver to a list; on deactivation, the event receiver was removed. It so happened that this feature was activated ...
0
votes
1answer
105 views

How to convert .eml file to .msg file for each new item in a document library?

I have a document library. Sometimes we upload .eml files. These .eml files could not be opened on mobile devices. When you convert the .eml file to a .msg file it is possible to open the file on ...
1
vote
2answers
61 views

How to handle Events in SharePoint 2013 On line custom list?

I am working on SharePoint 2013 on line. I would like to know best possible way for Event handling in SharePoint 2013 On line.In SharePoint 2010 we manage it through Event Receiver or workflow.
1
vote
1answer
49 views

Force checkout new items

I would like to force check out documents to the owner of the document when it is added. I am currently doing this when a new item is added via a workflow. I'd like to achieve this via an event ...
1
vote
0answers
33 views

how to move a file in itemupdating

Like described in the title i'd like moving my file in itemupdating in place of itemupdated. Like this the list is refreshed and file doesn't display anymore. I use this that works and move correctly ...
0
votes
1answer
228 views

Save Conflict error While Saving

I have one sharepoint 2010 application, in which i have to add the item to the list followed by 2 more updates within the same list item. These are the items that I have to do while saving. I need ...
1
vote
1answer
55 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
27 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
86 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
68 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
51 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
198 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
239 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
2k 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
561 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
240 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
379 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
820 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
50 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
99 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
471 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
234 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
46 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
250 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
302 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
65 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
401 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
109 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
95 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
100 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
71 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
39 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
102 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 ...