Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

SharePoint adds 10 seconds to ItemUpdating events

I've lately noticed that repeatedly writing the bytes to the same document in LINQPad ended up taking veery long: over 10 seconds. It happens at least for DOCX and DOTX files, I suspect other Office ...
Beniamin's user avatar
  • 131
2 votes
2 answers
2k views

Allowing users to edit and move documents, but not delete them

I have two questions here. The first question is that I need to allow users to add documents, edit them but not delete them. I know that this is possible somehow by writing a code using the ...
Crystalii's user avatar
0 votes
1 answer
1k views

Where to add an event listener when using SPFx and React

Which is the preferred place to add an event listener in your code if you're using SPFx and React? The .ts file or the .tsx file? And which function, componentDidMount, getInitialState, render? The ...
Papageno's user avatar
  • 343
0 votes
1 answer
409 views

Calling a script through a button added by jQuery

I have a jQuery which runs through all my divs with a "code" class and prepends a button to them. The button is supposed to call another function to copy the content of that div to the clipboard. ...
Eleshar's user avatar
  • 105
1 vote
2 answers
319 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 ...
SharePoint Lady's user avatar
1 vote
0 answers
34 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 ...
Imrik's user avatar
  • 111
0 votes
1 answer
80 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 ...
Jen's user avatar
  • 452
0 votes
1 answer
282 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,...
MattE's user avatar
  • 207
0 votes
1 answer
191 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 ...
Laura's user avatar
  • 23
5 votes
1 answer
203 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?
user avatar
1 vote
2 answers
1k 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 ...
Keshav Taurah's user avatar
2 votes
1 answer
106 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 ...
Ivan Tikhonov's user avatar
1 vote
0 answers
170 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 ...
belmer1416's user avatar
2 votes
1 answer
303 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 ...
tm_'s user avatar
  • 115
0 votes
1 answer
2k 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 ...
Ram's user avatar
  • 2,444
1 vote
0 answers
122 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 ...
samolpp2's user avatar
  • 3,500
0 votes
2 answers
4k 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 ...
John John's user avatar
0 votes
1 answer
31 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 ...
Joao Silva's user avatar
0 votes
1 answer
407 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 ...
Aji's user avatar
  • 1
0 votes
3 answers
2k 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 ...
Steve Montague's user avatar
0 votes
1 answer
156 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 ...
Paolo's user avatar
  • 133
0 votes
1 answer
140 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 ...
George Grainger's user avatar
1 vote
1 answer
237 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 ...
hello B's user avatar
  • 681
0 votes
1 answer
30 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 ...
hello B's user avatar
  • 681
1 vote
1 answer
294 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 ...
Celia's user avatar
  • 41
1 vote
0 answers
86 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 ...
Web User's user avatar
  • 229
3 votes
0 answers
385 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 ...
s1nce's user avatar
  • 31
1 vote
2 answers
289 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="...
Burre Ifort's user avatar
  • 1,339
2 votes
1 answer
628 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 ...
sasfrog's user avatar
  • 314
0 votes
0 answers
111 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 ...
Husen's user avatar
  • 55
0 votes
1 answer
79 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 ...
matt's user avatar
  • 35
0 votes
1 answer
201 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 ...
Batistuta's user avatar
  • 708
0 votes
1 answer
569 views

ItemAdding list field

I am trying to update list field using ItemAdding, public override void ItemAdding(SPItemEventProperties properties) { SPListItem curListItem = properties.ListItem; curListItem....
Batistuta's user avatar
  • 708
1 vote
0 answers
32 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 ...
riz123's user avatar
  • 145
0 votes
1 answer
944 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 ...
motionpotion's user avatar
  • 2,247
2 votes
1 answer
1k 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 ...
motionpotion's user avatar
  • 2,247
0 votes
1 answer
284 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 ...
smith's user avatar
  • 55
0 votes
1 answer
685 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 ...
Koushik's user avatar
  • 182
0 votes
2 answers
450 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]....
Thomas Mathew's user avatar
0 votes
2 answers
728 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 ...
Thomas Mathew's user avatar
1 vote
3 answers
3k 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 ...
Hardik Kothari's user avatar
2 votes
1 answer
522 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 ...
leo's user avatar
  • 21
1 vote
1 answer
911 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 ...
C. Poulain's user avatar
1 vote
3 answers
115 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 ...
elSpanielo's user avatar
4 votes
1 answer
292 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 ...
Vardhaman Deshpande's user avatar
1 vote
1 answer
95 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 ...
Akash's user avatar
  • 157
1 vote
2 answers
696 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 ...
user avatar
3 votes
1 answer
100 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 ...
Submits's user avatar
  • 3,254
0 votes
2 answers
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 ...
entryton's user avatar
  • 332
0 votes
1 answer
132 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.
Anbu A Sharpoint Follower's user avatar

1
2 3 4 5 6