Questions tagged [event-receivers]

Event Receivers are a piece of managed code that responds to SharePoint events when specific triggering actions occur on a SharePoint object.

Filter by
Sorted by
Tagged with
1
vote
2answers
3k views

How to use SharePoint notification from Event Receiver

I have an event receiver, which fires when item is being deleted ( ItemDeleting event ). I have some logic that checks whether item can be deleted or not, and if it can't, I need to show notification ...
0
votes
1answer
113 views

Sharepoint EventReceiver Singleton for one thread

I would like to create singleton patter in Sharepoint EventReciever. The singleton have to be unique for every run of EventReceiver (I dont want to share data between ed and ing function - this is not ...
0
votes
1answer
381 views

ItemAdding list field

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

Differentiate in ItemUpdated (ER) if file was edited or overwritted

I've an ItemUpdated Event Receiver, and I need to make different operations depending if the file was updated throw UI or overwritted. Is there any internal field that reflects this 2 different ...
0
votes
2answers
2k views

ItemUpdated not changing field values

I have a document library that should replace the Name column with the value from an Employee column. Code: public override void ItemUpdated(SPItemEventProperties properties) { base....
0
votes
2answers
788 views

Checkout event receiver

I am using the below code to checkout the document in a library when an item was updated. The library has versioning and content approval enabled. My problem is that when you check in the document ...
0
votes
2answers
9k 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 ...
0
votes
4answers
4k views

How can I call a custom JavaScript function after a form has validated?

I have a form for submitting events to our calendar. What I want is to call a function once the form has validated. Something like this: User edits item User clicks save button Form validates ...
0
votes
1answer
131 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
2answers
109 views

Event reciever on item updated do not start when item is updated trough a workflow

When an item is updated maually the event reciever starts and work as expected. But when the item is updated through a SharePoint Designer Workflow, nothing happens. There is nothing about this in the ...
0
votes
2answers
126 views

If i have an Event Receiver inside my SharePoint 2013 ,, is it suppose to work in sharepoint 2016 as-is

I am created many Event Receivers inside SharePoint server on-premise 2013. using the following technologies: visual studio 2012. the event receivers mainly got executed when list items are updated, ...