Event handlers is a program statement which is called from an event. The event can be a human striking a key on the keyboard or pushing a button on a web page

learn more… | top users | synonyms (1)

11
votes
2answers
999 views

Why is my workflow DependencyProperty event handler not firing?

I have a custom workflow activity (SharePoint 2010) with a Dependency Property defined as follows: public static DependencyProperty TaskChangedEventPropertyEvent = ...
0
votes
1answer
12 views

Notification handler firing for immediate but not for digest

I wrote a custom handler to rewrite the urls in the alert messages: that's because separate frontends exists for FBA users and internal (active directory) users. default mail messages ships with links ...
0
votes
2answers
3k views

ItemAdding event not firing when submitting InfoPath form to form library

I created an event receiver in Visual Studio to handle three events in a form library: ItemAdding, ItemUpdating, and ItemDeleting. ItemUpdating and ItemDeleting work as expected when debugging, but ...
0
votes
1answer
629 views

Prevent folder deletion in document library - Explorer view snafu

We want to prevent users from deleting top level folders in a document library. We created an event receiver on ItemDeleting that checks if the item type is a folder and if the path is the top level, ...
1
vote
2answers
1k views

How to trace the ListAdded event for the entire SharePoint 2010 farm?

In our SharePoint 2010 environment, we want to enforce the users to choose the option "show user names in the survey list" (survey list) however there may be a time when user may choose "No" to this ...
1
vote
3answers
991 views

How to get absolute previous url in event receiver?

I have a root site list which I am displaying on several sub-sites using CQWP based on a custom filter and entering the list values from sub-sites itself to the root site list. So I am trying to ...
1
vote
2answers
1k views

Event Receiver CancelWithRedirectUrl issue with multiple selected list items

I've got my event receiver (ItemDeleting) working almost exactly the way I'd like it to. Upon certain conditions in the ItemDeleting event, I am setting the status to CancelWithRedirectUrl and ...
10
votes
3answers
4k views

Which process do event receivers run under?

Some MSDN articles say that synchronous event receivers run under w3wp.exe, and asynchronous event receivers run under owstimer.exe. For eg, this one: ...
4
votes
5answers
7k views

How to get current logged user in event receivers?

I need to get the information about the user actually logged (as SPUser) inside an event receivers. The following line: Dim currentUser As SPUser = SPContext.Current.Web.CurrentUser does not work ...
0
votes
1answer
28 views

Event Handler - Unauthorised access error

So, on my ItemAdded receiver, I am looking to update a list item field. Now, if the user adding the item to the list, has sufficient permissions/privileges, this all runs smoothly. If not, the code ...
0
votes
1answer
17 views

List Subcription EventHandler

I'm trying to built a custom code that should run on Subscription event. As we know, When people Subscribe to a Sp List, you receive a Mail Message on your Box. I Should intercept that Event. I've ...
1
vote
1answer
29 views

Custom Alert does not trigger

Has anyone successfully implemented IAlertUpdateHandler on SP 2010? When I try to add a new alert on a document Library following this tutorial, everithing seems to be fine. But when I try to insert ...
0
votes
0answers
18 views

Why alert Events trigger twice

I have a custom Alert dll that send custom email messages. But everytime the alert event triggers, it does twice and send two Mail message. Another strange problem is that, often the runtime jump some ...
1
vote
1answer
21 views

Append several columns to another SharePoint list using event receiver

I am working on two SharePoint list:List 1 is overview of servers including: Server Name, Purpose, status etc.. List 2 is change log on each server, it got an lookup column that connects to Server ...
1
vote
0answers
25 views

Prevent update of SharePoint document library item when clicking [OK] button in Edit Form

I am developing a SharePoint (2007) document library item event receiver to force the user to click on the [Cancel] button instead of the [OK] button in the Edit Form (EditForm.aspx), since clicking ...
5
votes
1answer
2k views

Is there a way to enable and configure incoming email for a document library using the C# api for sharepoint 2010

I've got a requirement to allow users to approve or disapprove certain actions by replying to auto generated emails. I've already got a good handle on how to use email enabled lists and event ...
3
votes
0answers
49 views

Event receiver on external list

Recently I am working on a project to set event receiver on external list. Below list what we have done Create trigger to capture data change in database and log them into data table Implement ...
1
vote
2answers
91 views

WebProvisioned event handler is firing twice and subsite does not inherit the parent's top navigation

I have created an web event receiver but the webprovisioned event handler fires twice. I have set the scope to web, but it still fires twice. Problem 1 This is elements file: <Elements ...
13
votes
1answer
899 views

Memory leak in Microsoft.Sharepoint.Taxonomy.TaxonomyItemEventReceivers?

I've been trying to locate some memory leaks we've noticed in our ULS (EventID: nask, An SPRequest object was not disposed ... etc). On my dev environment, and at least 2 other cleaner installs, the ...
0
votes
2answers
5k 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 ...
2
votes
1answer
164 views

Can I use a remote event receiver on a non-app custom list in SharePoint Online?

Is it possible to associate/register a remote (provider-hosted) event receiver with a custom list that is not part of a provider-hosted app (e.g. the list is on a site, but is not within an app)? If ...
0
votes
1answer
498 views

Event Receiver Item Updating Datasheet view Problem

I've got a list that is being displayed and edited in datasheet view and now I need to ensure that users cant edit a column if there already is a value, but if the column is empty they should be able ...
3
votes
1answer
537 views

workflowAssociation not displaying workflow

I have created a feature. In the FeatureActivated event I am creating some lists. I am then trying to attach a custom workflow to one of the created lists. However when I do this the workflow history ...
0
votes
0answers
42 views

Rename Folder in ItemUpdating

I just wanted to rename an item of a custom content type based on the default folder content type while it is being created. My idea was to do it in ItemUpdating event due to other operations I am ...
2
votes
5answers
2k views

Locked Row in database for key on Infopath Submission for Contribute Permission + below w/ Custom Event Reciever (ItemUpdating)

Basic Rundown of Process: I am creating a Process wherein an InfoPath form is Submitted to a Library, certain managers will then have the ability to change a drop-down to either Approved or Rejected, ...
0
votes
1answer
41 views

Event handlers not triggering when attached to custom list (2013 on-premises)

I have a three 2010 event handlers installed on-premises on 2013 foundation that are all part of the same solution (added, updating, updated), none of which are triggering when they are attached to ...
0
votes
1answer
46 views

Event receiver, unpublish

Hi how could i use a event receiver based on a document library, to se if the user has unpublished a dokument in the library, in the mean time also i want to update a field in the document library ...
0
votes
1answer
86 views

ItemAdding list field

I am trying to update list field using ItemAdding, public override void ItemAdding(SPItemEventProperties properties) { SPListItem curListItem = properties.ListItem; ...
1
vote
0answers
12 views

Event for DateTime Controller, when the DateTime Controller is Cleared

I am using a DateTime Controller with an event validator (Required Field). I need to fire an event when a user clears the DateTime Controller (Empty). I was trying to do this in ...
5
votes
1answer
653 views

In a document library itemUpdated event receiver, how to tell if a file was just modified?

How do I know if it is the file being updated? Since it could just be the item properties.
5
votes
2answers
319 views

How to add style library event receivers?

how can I add an event receiver to the style library ? (can't find any templateid)
1
vote
2answers
539 views

Remote event receiver on sharepoint 2013 online does not work

I recently started to develop Sharepoint 2013 on my office 365 account. The problem is that remote event receivers which I attach to deploying application do not work. I mean that they should listen ...
4
votes
1answer
2k views

Enlarge Newsfeed images on SharePoint 2013

I am a bit stumped why I have not found much information on this topic or why no one is asking the question. Maybe it is just not possible. My question being: Are you able to enlarge Newsfeed images ...
10
votes
3answers
8k views

Deploying EventReceiver project with target of WebApplication from VS fails when activating features

I am trying to deploy an event receivers project with a deployment target of WebApplication as part of my web parts package (also has a target of WebApplication) through Visual Studio and encountering ...
2
votes
3answers
6k views

event receivers and execution order

I am using some of these such as ItemAdded and ItemUpdated and I had altered the elements file to make this synchronous. I'm just curious as to what the order of execution is for all these handlers. ...
0
votes
1answer
274 views

Passing Parameters On Ribbon Button Click

I have added a button to the ribbon for a specific content type on a list (parent list). This is the only content type on the parent list. When an item in the parent list is selected and then the ...
0
votes
1answer
253 views

Manage Multiple ItemUpdating Event Receivers On List

I have a requirement to multiple Event Receivers targeting Custom List (100) that fire on the ItemUpdating method. For one of the Event Receivers the requirement is to check that there are no related ...
2
votes
0answers
75 views

restore default incoming email settings

I wrote an email event receiver for a list, which override the default incoming email settings (I now only have an option to turn it on/off and set the email, and the rest is expected to be handled by ...
6
votes
2answers
2k views

How can I tell if a document is 'being published'?

I need to use the relevant event receiver to tell if a document is being published, is this possible? I will settle for has 'just been published' - i.e. I have no preference between itemupdating and ...
0
votes
1answer
62 views

How to prevent Files with same Name?

I have a service that takes a file from a library and send it to an already specified folder. This becomes a problem when I'm having files with same names on diferent folders. Lets say that the ...
3
votes
5answers
7k views

How does Sharepoint Online Event Receivers work?

I have created this Sandboxed Event Receiver on ItemAdding on a custom list. It works on my on-premise server, but it does not work on Sharepoint Online aka. O365. Anybody know how to create an ...
4
votes
4answers
4k 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 ...
12
votes
9answers
14k views

Event Receiver Firing for all Lists - even when ListUrl is set

I have two custom list definitions - List 1 and List 2, both with different ID's for the Type in the elements.xml. List 1 is called 'List1' and the other is called 'List 2', note that the second list ...
0
votes
1answer
216 views

How do I know whether an Event Handler has already been attached to a SharePoint O365 list?

I have a SharePoint O365 site which has a custom list named ReportMetadata. There is an event receiver for this list for ItemAdded event which will take the image from the attachment column of the ...
0
votes
2answers
297 views

SPGridView SelectedRow.Cells[] returns empty value

I have created an SPGridView control in my visual web part. Inside SPGridView, there is an SPHyperLink control that stores some URL. When accessing this value using SPGridView ...
0
votes
2answers
227 views

How to trigger a click event for a column item in SPGridView control

I have created a SPGridView control in a visual web part project. This control displays all the folders inside a Document library. I have used SPBoundField to the display the column data. Is it ...
3
votes
1answer
81 views

Ascertain the method of file upload in SharePoint 2013 document library?

In an ItemAdded event receiver, is there a way to ascertain whether the file was uploaded via the "new item" button in the document library or whether it was dragged and dropped into the browser ...
2
votes
1answer
283 views

SharePoint Document Library document delete

Please suggest your solution for the following scenario: A user deletes the document from document library and an e-mail has to be triggered to the admin notifying the information about the document ...
1
vote
3answers
64 views

ItemUpdated Event Handler after list item is Liked

I have a document library that upon an item being liked (updated) it adds an entry in to another list. Everything works fine except the new list item is being created by the System Account instead of ...
1
vote
1answer
352 views

Automatically Setting the Masterpage in Sharepoint 2013

I am trying to install our custom masterpage (and supporting files) as a feature which would automatically turn on and set the default masterpage to our custom one. When deploying in VS2012, it works ...