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

35 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
20 votes
1 answer
1k 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 ...
Nicholas Mulder's user avatar
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
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,264
3 votes
2 answers
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 ...
mikey's user avatar
  • 349
3 votes
1 answer
677 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 ...
John's user avatar
  • 3,763
2 votes
1 answer
301 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
2 votes
0 answers
85 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 ...
user11457's user avatar
  • 501
2 votes
0 answers
488 views

Error thrown after SaveBinary in ItemAdded event handler

I'm working on a ItemAdded event for a document library, and I'm running into this error in SharePoint 2007... The file Lists/Shared Audit Documents/1387/Audit Report.docm has been modified by ...
OneFreeFitz'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
1 vote
0 answers
165 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
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,530
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
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
1 vote
0 answers
31 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
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
0 answers
128 views

Notifying a webservice about list update events

I have a custom webservice hosted in SharePoint that caches data from a certain list. It needs to update the cache every time the list is updated. It seems to me there are 3 ways this could happen: ...
MgSam's user avatar
  • 822
1 vote
0 answers
2k views

Event Receiver - How to set item value with the value from the existing item in the SAME list?

I have a business requirement to add a new version (revision) of the existing list item. New list item should have this setting: NewItem.ParentID=ParentItem.ID NewItem.ProjectID=ParentItem....
Dragan Petrovic's user avatar
1 vote
1 answer
51 views

An event to be fired on editing a file

As title says, I need an event to fire when a listitems file has been edited. I appreciate this isn't as simple as it having it's own event, which is why I've tried to make use of the itemupdating ...
JᴀʏMᴇᴇ's user avatar
1 vote
1 answer
169 views

Disable save item button while save process is not completed

User clicks on Save Button and saving procedure can take "few" seconds. User can click again..that`s why i need to disable save button, how can i do this?
Alexey's user avatar
  • 73
1 vote
0 answers
441 views

Document library event receiver when creating documents

I created an event receiver that processes some information in docx files when uploaded to the library. I do this in ItemAdded event. Everything works fine when the file is uploaded. When the files ...
Élodie Petit's user avatar
1 vote
1 answer
1k 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, ...
JohnC's user avatar
  • 264
0 votes
0 answers
23 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
0 votes
1 answer
406 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
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
190 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
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
1 answer
29 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
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
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
1 answer
131 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
0 votes
1 answer
531 views

Event handler for document library in Sharepoint 2010

Using VS2012, I'd like to create an event handler for a document library. When a document is added to a library, an entry is created in a list. That list entry contains all the metadata from the ...
Firdous's user avatar
0 votes
1 answer
835 views

Why ItemUpdating is calling after ItemAdded event in Sharepoint-2010?

I am developing Sharepoint 2010 application where I have been using SPItemEvent to deal with ItemAdded event. One thing surprised me that ItemUpdating event is calling after ItemAdded event in List. ...
Akash KC's user avatar
  • 101