Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [event-handlers]

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

1
vote
2answers
24 views

Pause Event Handler Using Powershell

I am not sure if this is possible. I know there is a way to disable or delete an event handler using Powershell. But is there a way to pause an event handler using Powershell? I have three event ...
0
votes
0answers
11 views

What is the event to pick up any changes to the list webpart not directly induced by user input?

Is there an event that fires every time when a list webpart rows are changed? Like I wanted a script to run every time the list contents update, and I don't know how I can do that. On load is NOT what ...
1
vote
0answers
27 views

Event handler that executes before an item is added? (Sharepoint 2013)

I need to obtain a user group when he/she click the Add item button of a list. I mean... I want to write on one of the field of the item the user group. I get correctly my user group, but I'm using ...
0
votes
1answer
35 views

How to get User Assigned to from task list

An event handler that counts how many workflow tasks the ‘assigned to’ person/group has been assigned with? Across multiple task lists. It is assigned to a SharePoint group - it’s not assigned to ...
0
votes
1answer
115 views

how to target Sharepoint 2013 Modal OK Button click event immediately AFTER button click not after file upload finishes?

I am using the SP file attachment modal to attach files to list items and I am having an issue with trying to target the OK button click event. I know I can use the dialog callback once it finishes,...
0
votes
1answer
62 views

Execute Code to save madatory fields when Cancel button is selected in the editform.aspx

After a user uploads a document the editform.aspx page is displayed. I need to force an update even if Cancel button is selected within the default editform.aspx form of a library. I know there is a ...
5
votes
1answer
151 views

SP2013 Event Receiver action open page library\list

I want to create Event Receiver, but I need an event type that would work when opening the library\list page for example. Tell me which event to use? Or is Event Receiver not the best solution?
1
vote
2answers
468 views

SharePoint Webhooks : Get the ID of the newly created folder using ChangeQuery

My scenario: I have setup a webhook on a list and each time a new folder is created,my azure function is called(which is acting as the notification hub),where i am using the changequery to get the ...
2
votes
1answer
60 views

SharePoint Field with Guid type always has null value

I have a custom page library with Guid type field in my SP2013 portal. ItemAdded event receiver set value to this field. But when I try to get value from this field by update receiver I get always ...
1
vote
0answers
43 views

SharePoint copyTo moveTo with document library error

Using event handlers and workflows I am trying to archive a document library after a certain amount of time has passed. However I am having an issue with moving the document library. This is the code ...
0
votes
2answers
161 views

Event receiver and handler without SharePoint Server/Foundation

I need to use some event receiver and handler functionalities into my SharePoint sites, but unfortunately I can't install SP Server or SP Foundation on my computer. I tried to use Visual Studio but ...
0
votes
1answer
1k views

base class for event receivers in sharepoint 2010 & 2013

What is the name of Base Class of event receiver in SP 2010 & 2013? Are the Base classes same? How to use those? I have gone through the article on MSDN but not clear the things. Can anyone help ...
1
vote
0answers
53 views

Trigger itemupdated eventhandler when an item is Added in an SPList

I have written an itemupdated event receiver for a SPList in my SP 2013 / VS 2013 solution [ on-premises] . Now I want to trigger this itemupdated event when the item is created in the SPList .But ...
1
vote
2answers
2k views

Does my ItemUpdated event receiver execute Synchronous OR Asynchronous if i did not define a <Synchronization> inside the element.xml

I have the following inside my sharepoint 2013 enterprise server:- 1- using Visual Studio professional 2012 i created a new ItemUpdated Event receiver. 2- the event receiver will fire after a list ...
0
votes
1answer
24 views

Test bed for asynchronous event receivers

Is it somehow possible to configure SharePoint on a test/debug environment so the order of execution of event receivers is orchestrated? There are moments when a couple ItemUpdated events occur, or ...
0
votes
1answer
151 views

Event Receiver Rename file

I am trying to rename file( removing few unwanted characters adding few etc). I am able to do it via itemadded event I have tried SPFile.MoveTo( works fine) and simple changing property["Name"] it ...
0
votes
3answers
1k views

jQuery - Detect value change on page and call routine

On an EditForm.aspx page I have a routine to hide/unhide a field based on the change of another field. It works fine on pageload, but I want to fire the change on the page itself if the user makes a ...
0
votes
1answer
72 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
1answer
95 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 ...
1
vote
1answer
166 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
1answer
27 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
236 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
74 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 ...
3
votes
0answers
299 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
238 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 xmlns="...
2
votes
1answer
601 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
0answers
95 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 ...
0
votes
1answer
50 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
117 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
272 views

ItemAdding list field

I am trying to update list field using ItemAdding, public override void ItemAdding(SPItemEventProperties properties) { SPListItem curListItem = properties.ListItem; curListItem....
1
vote
0answers
21 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 ...
0
votes
1answer
687 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 ...
2
votes
1answer
921 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 ...
0
votes
1answer
100 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 ...
0
votes
1answer
554 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
417 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 SelectedRow.Cells[3]....
0
votes
2answers
452 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 ...
1
vote
3answers
2k 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 ...
2
votes
1answer
492 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
1answer
807 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 ...
1
vote
3answers
89 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 ...
4
votes
1answer
260 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 ...
1
vote
1answer
31 views

Is there a good way to connect to a SQL Server using Windows authentication from a Sharepoint 2010 event hander?

Inherited some legacy code that makes use of SQL authentication which I want to eliminate. When I tried using Windows auth, the connection seemed to be getting created using ANONYMOUS LOGIN. is there ...
1
vote
2answers
569 views

How to get LookupValue in ItemUpdating

I have a custom EventHandler for ItemUpdating on a list which has a Lookup column. If I look in the properties.AfterProperties for the column in the ItemUpdating event I get the LookupId value but ...
3
votes
1answer
96 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 ...
0
votes
2answers
1k views

Redirect after deleting a list item

I have a requirement wherein I have to redirect the user to the homepage, after a list item is deleted. Right now, the corresponding list is shown after the deletion. How can I accomplish this? I ...
0
votes
1answer
129 views

Cancel an event handler based on user permissions

while adding an item to the sharepoint list i have created one custom group. if the user not belongs to certain group means the event handler should be cancelled.
1
vote
1answer
459 views

SharePoint Hosted App Event Receiver

Is it possible to create an event receiver on a list deployed in SharePoint hosted App?
2
votes
1answer
51 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
262 views

Trying to populate HyperLink type list item value in Event handler

I am trying to populate SiteUrl field in itemAdded event, this code doesn't give me error but field is not get populated public override void ItemAdded(SPItemEventProperties properties) { ...