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.
893 questions
0 votes
1 answer
33 views
How to change SPUser to SPFieldUserValue in ItemAdding event receiver
There is a field in my list called Authority Name and its type is Person. I am writing ItemAdding event receiver where I want to change this fields value. For e.g. if user is adding Mike in this field ...
0 votes
1 answer
67 views
How to copy list item from one site to another site?
I have one task list in my site collection. In that list I will assign tasks to users (5 users are there). Each user have one own site. Whatever tasks I am assigning that they have to see in their own ...
0 votes
0 answers
136 views
SharePoint On-Premises Event Receiver migration to SharePoint Online
There is a requirement to migrate SharePoint On-Premises sites to SharePoint Online (SPO). Some of the customization in the current 2013 on-prem site include Event Receivers specially ItemDeleting ...
0 votes
0 answers
45 views
Document Library with required fields and attached EventReceiver doesn't update item in time for the popup to reflect changes for the user
I have a document library which has some custom values, some of which are required to fill out. When a user uploads a Document sharepoint asks him to fill out those values and refuses to check the ...
0 votes
1 answer
80 views
In Event receiver property BeforeProperties is empty
I'm developing an event receiver for Item Updated in a list. But when I debug the code BeforeProperties is empty. Here is the code: string afterValue = properties.AfterProperties["...
0 votes
1 answer
88 views
Event Receiver - how to catch that document body/content is updated
I am trying to catch event (ItemUpdating) when user just replaces the content of a document without explicitly checking out/in. I have checked all the differences on BeforeProperties and ...
0 votes
2 answers
139 views
Hide "Replace" button from SharePoint Online
Is there a way we can remove the replace button in document library? Maybe using event receiver? I want the users not be able to replace the file with the same name
0 votes
1 answer
193 views
ItemUpdated event not firing
I have this code where only ItemAdding is firing when I add new item in the list but ItemUpdated doesn't fire. I am expeting that when new item is added then first ItemAdding fires (which is working) ...