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
35 views
How to fill Sharepoint list form on adding by Event Receiver
I have got custom list. I must Auto fill this list by Event Receiver. When the form is opening. The same elements should be auto filled. What code should I write ? I have only now: public ...
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
59 views
RunWithElevatedPrivileges not working
I'm trying to debug a server solution which stopped working when it was migrated into SP 2019 (not sure if it was migrated from 2013 or 2016). The solution is using SPSecurity....
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
1 answer
67 views
Extract correct event name for sharepoint events calendar list
I created a timer job for sending email daily for an events calendar list in sahrepoint onpremise 2016. When i put following code, it is not giving me exact event name: using (SPSite site = new ...
0 votes
0 answers
46 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
202 views
Unable to find remote event receiver template in Visual Studio 2019
I'm trying to create a remote event receiver solution for SharePoint Online using VS 2019 community edition. I created an empty SP Add-in project, but when I try to add a new item, the event receiver ...
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["...
1 vote
1 answer
310 views
Microsoft Project Server 2019 Event Receiver
Can anyone help and share with me the article or blog link to create an Event Receiver in Project Server 2019 on-prem environment. I found some articles based on 2010/2013, which I tried but not ...
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
0 answers
82 views
How to deploy an Event Receiver (C# Visual Studio Code) which writes to SQL Server Database table
I have created an empty SharePoint project Added the Event Receiver - Item Added It should do the following operations. Connect to sql database. Add the data to the database table. Close the ...
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
2 answers
186 views
Task Item added event receiver does not fire when item is added by Nintex workflow SharePoint 2016
I am trying to add an event receiver on the workflow task - list Item Added event, to get the Task ID and update it on another SharePoint List. This is because once I add an Assign Flexi Task action ...
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) ...