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

What is the best way to CRUD data in SQL database into SharePoint?

In Sharepoint site, I have a list, it will display data from the table in SQL database. When user insert, update or delete item in this list, the SQL database will be changed too. The change is one ...
0
votes
0answers
11 views

Renaming a file with Event Receiver [duplicate]

I need to rename a file in a document library with an event receiver, so that the URL will not have %20's. Basically the File name or File path needs to be stripped of spaces. The problem I'm having ...
0
votes
0answers
10 views

Event Receiver Infopath

How to reference and update a field in InfoPath using the event receiver in the form library in which the form is submitted to? How do you reference InfoPath document and a get a value(update it) in ...
0
votes
0answers
30 views

Renaming a file with ItemAdded Event Receiver

I am using an Event Receiver to rename a file in a document library. For some reason this doesn't seem to work. public class EventReceiver1 : SPItemEventReceiver { /// <summary> /// An ...
0
votes
2answers
373 views

“Feature has conflicting event reciever settings” error

I am new to SharePoint so I apologize if this is not phrased properly, but I created a BDC to a SQL database in Visual Studio 2012. I am trying to have the list created programmatically through an ...
1
vote
1answer
37 views

Event Receiver How to change account of Firing Event Receiver

Event receiver always running on privilages of acount who logged in. How to change in Event Receiver Account with who is firing the account. How could I set a account for firing event receiver ? By ...
0
votes
1answer
18 views

How to set start Value on Event Receiver

I must set a Value in Items Adding, it should be start Value of element. How could I set a Value. Like Default Value But that will be number User1, User2, User3 To Unical identyfy User. I have got ...
-1
votes
1answer
42 views

ItemUpdated Event Receiver how to change element from one list to secound list

I have got two lists. I must do synchronize this list, but one have got only 3 columns, and secound list have got 3 columns too, but have got more columns with hidden value. I done synchronizing ...
4
votes
1answer
570 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 ...
0
votes
1answer
20 views

Event Receiver Item Updated how find element to update

How to find by code elements to update in Event Receiver ItemUpdated and to update them ? Please help.
0
votes
3answers
26 views

Problem with Item Added Event Receiver firing five times, not one

I am using an Event Receiver, which should synchronize two Lists, But it is firing five times instead of one, and makes 5 records, not one. Why is it firing 5 times? public override void ...
0
votes
1answer
22 views

SharePoint Online: Provider hosted App - Deployment Eventreceiver

I created a provider-hosted app, with a MVC webapplication. Inside my SharePoint project, I created fields, contenttypes and lists. But now I need a solution for this. 1) I need to create ...
2
votes
1answer
499 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 ...
2
votes
1answer
30 views

Event receiver on newly created site

I need the steps on how to attach event receiver whenever any new site is created. I have not tried this before. I need the detailed step on creating event receiver on site creation
2
votes
1answer
43 views

Item still deleted when click on OK in ItemDeleting event CancelWithError

public override void ItemDeleting(SPItemEventProperties properties) { try { properties.Status = SPEventReceiverStatus.CancelWithError; ...
2
votes
1answer
25 views

Add-SPSolution Error An object in the SharePoint administrative framework, "SPSolutionLanguagePack Name=0

When I tried to add my wsp solution I am getting the error, An object in the SharePoint administrative framework, "SPSolutionLanguagePack Name=0 Parent=SPSolution Name=myeventreceiver.wsp", ...
0
votes
1answer
13 views

Event Receiver Infopath Submission

I have a request that the permissions inheritance(library to item) in the InfoPath form library should NOT to be broken. So what I am looking for is that the submitter group that has a read access ...
0
votes
1answer
24 views

Event Receiver and Infopath based coloumns

An event receiver on an InfoPath library works only when updating columns that are not created by propagating values from Infopath(). In code below "change" is a regular lib. column and ...
0
votes
1answer
18 views

Event Receiver Does Not Cancel In Explorer View

I have a document library with a ItemAdding event receiver registered to it that looks for whether a folder has been added and if so, cancels the folder creation. This works fine in the GUI. However, ...
0
votes
3answers
226 views

item adding event receiver failes to trigger in bulk items inserting

Currently am developing an item adding event in event receiver for a custom list. The list is updated using datasheet view, usually by adding bulk items (ex : 50 items ) to list using datasheet view. ...
3
votes
1answer
17 views

Accessing Web application on a NLB Environment having Session values

I am having a multi server production environment with 2 WFEs ,2 Index Servers, 2 SQL Server boxes. I have deployed my wsp on these 2 WFEs. The issue I am facing is when the NLB switches from one IP ...
2
votes
1answer
21 views

Cancel event while ItemAdding

I am just trying to cancel the default behavior of event when adding Item public override void ItemAdding(SPItemEventProperties properties) { try { //my code ...
0
votes
1answer
756 views

Event Receiver on Publishing Page Library

I created a new event receiver and hooked it onto the Pages library for my publishing site. I attached each one of the events exposed, but I cannot get any of them to fire. elements xml: ...
0
votes
0answers
8 views

event receiver preventing column updates in a content type during bulk upload

I am bulk uploading files to a library. In the bulk upload, i will be able to specify content type of the file and values of all other fields for that content type. When i upload files, the file ...
0
votes
1answer
632 views

WebProvisioned Event Receiver Firing Twice

I am creating sites and subsites with object model from a console app. And what i realized is, it fires twice for every newly created subsite. I checked from Sharepoint Manager if the event receiver ...
1
vote
1answer
30 views

ItemAdded not firing until an item is added via web interface

I'm inserting items into a List via REST (authenticated with the SP Administration login). The list has an ItemAdded, correctly attached (I checked with SP Manager) The event starts firing only ...
0
votes
2answers
214 views

Event receiver not firing Document Library

I have a local development environment in my VM.(SharePoint server 2013 SP1,Visual Studio Ultimate 2013-update3). I'm trying to add an event receiver to a document library on ItemDeleting. Deleting a ...
1
vote
2answers
44 views

Javascript Disable event receiver firing

Are there any ways to disable event receiver firing by javascript for a list during updating data?
1
vote
0answers
9 views

How to get the Created By and Current Logged In user in itemcheckedin event receiver

I need to get the Created By and Current Logged-In user in my ItemCheckedIn event receiver. Is there any way I can access values.
1
vote
0answers
11 views

Debug EventReceiver on multi Server Farm environment using Visual Studio

I am having a multi server environment having 2 WFEs & one SQL Server DB box.I have installed office developer tools for VS 2012 .But I am unable to debug my item added event receiver like my ...
1
vote
1answer
559 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 ...
5
votes
2answers
306 views

How to add style library event receivers?

how can I add an event receiver to the style library ? (can't find any templateid)
2
votes
1answer
471 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
29 views

SPList.GetItemById and Checked Out Items

It seems I cannot use SPList.GetItemById(int) or SPList.GetItemByUniqueId(Guid) or Web.GetListItem(string) to get an item that is checked out. I have tried all three and all three result in a "File ...
1
vote
2answers
30 views

disable event receiver in sharepoint list

Can anyone tell me that how can i disable an event receiver on one SharePoint list while adding an item in other? For example i want to disable event receiver on list B while i add item in list A. I ...
0
votes
2answers
30 views

Need privileges to break inheritance

Idea is that inside an ItemAdded event receiver in a sandboxed solution (SharePoint Online) I want to set permissions on the item, which requires privileges that the user should not have on the list. ...
0
votes
0answers
7 views

Using Npgsql within an eventreceiver

within an eventreceiver I need to update a postgresql table. At first I tried to go Quick&dirty by using Npgsql.dll, but the thing fails at creating the NpgsqlConnection with an "unhandled ...
0
votes
1answer
427 views

Can't use SPItemEventProperties ListItem on ItemAdded in Event Receiver

I'm using event receivers to modify some of the inputs in a SharePoint 2013 site. They are fairly straight forward, here is a simple example public override void ItemAdded(SPItemEventProperties ...
0
votes
0answers
11 views

Event Receiver deployed as a sandbox solution throws exceptions

I have deployed an event receiver as a sandbox solution to production. This is event receiver executes on ItemUpdated event. The code runs well in development server as a sandbox solution but throws ...
0
votes
1answer
28 views

How to get the current logged in user in the Modified By column in ItemAdded EventReceiver

public override void ItemAdded(SPItemEventProperties properties) { try { base.ItemAdded(properties); EventFiringEnabled = false; SPListItem ...
2
votes
1answer
14 views

Disable Event Receiver on Datasheet Editing

I have an ItemUpdated Event bound to a list and do not want it to fire when the List item is edited in Datasheet view. Is there a way to detect if the User is editing through the Datasheet?
0
votes
1answer
27 views

Default download dialog box not appearing on click of a document link in a document library?

I am using the code given in this link to watermark my documents. Here the author has used IHttpHandler to watermark document whenever a user clicks on a pdf document. Whenever I click on a document ...
0
votes
1answer
22 views

Can I change the path of file to be uploaded in item adding event reciever?

I want to change the file path that is uploaded by user. What I am doing is user will upload a file and I am doing some changes to that file in itemadding event. So, for that I am creating another ...
0
votes
1answer
29 views

Weird behaviour of event recievers

When I try to implement itemadded or itemadding event receiver and put this watermarking code below base.ItemAdding(properties) then the event are not getting triggered. As soon as I remove this ...
0
votes
0answers
41 views

Time zone shift problem for dates in AfterProperties of list item event receiver for events from Outlook

I need to analyze the "EndDate" of events inside SharePoint 2013 standard calendar items from a list item event receiver and cancel some modifications based on time of this date. I have this code for ...
1
vote
2answers
45 views

Is it possible to call JS file in Event Receiver?

Is it possible to call JavaScript file in any of the events in event receiver in SharePoint 2013.
0
votes
1answer
22 views

Document asking to be checked out after checking out

I'm updating a file that contains versioning and previously it stated that the document requires checking out to edit so I run the following code that results with the same error: if ...
0
votes
1answer
25 views

Event handler triggered multiple times in close succession on doc lib causing issues

I'm using an ItemUpdating event with a Document Library to run a Task generation procedure. After stepping through, it's causing issues when I check out the document which I'm forced to do after ...
0
votes
1answer
28 views

Search List B for matching object property in List A Event Receiver

Need help understanding how Event Receivers work while referencing multiple lists. I have a document library, called 'Emails'. On an Email object, I have a lookup field called 'Candidate'. I have ...
0
votes
2answers
914 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); ...