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
0 votes
0 answers
10 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
  • 121
0 votes
0 answers
14 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....
Rogerb's user avatar
  • 1
0 votes
0 answers
26 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 ...
rjdev's user avatar
  • 1
0 votes
0 answers
4 views

Force Form to Open with a specific ContentType in a document Library via EventReceiver

I have a document Library with two ContentTypes. Our client wants to have Required Values for a Document in a specific folder. I currently am Setting that ContentType if the File gets uploaded to that ...
Saik's user avatar
  • 13
0 votes
1 answer
47 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 ...
user105078's user avatar
0 votes
0 answers
34 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 ...
Saik's user avatar
  • 13
0 votes
1 answer
110 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 ...
Robin Roy's user avatar
0 votes
1 answer
42 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["...
Gleb Krylov's user avatar
1 vote
1 answer
105 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 ...
Haseeb Chishti's user avatar
0 votes
1 answer
45 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 ...
Furli's user avatar
  • 23
0 votes
0 answers
63 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 ...
Natasha Gondi's user avatar
0 votes
2 answers
49 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
hellothere's user avatar
0 votes
2 answers
125 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 ...
Vikas Kottari's user avatar
0 votes
1 answer
141 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) ...
Frank Martin's user avatar
  • 3,646
0 votes
1 answer
31 views

Build Remote Event Receiver with yaml

Is there are a way build the Remote Event Receiver project from PowerShell? We have a RER project and we want to obtain the .app file without the interface, just pure PowerShell script. Thanks in ...
JohnRambo's user avatar
  • 187
0 votes
1 answer
89 views

New File Uploading causing Edit Event

I have a document library that does not have any required fields, and needs not check-out before editing, saving only major versions. One of the users created an alert on the document library to ...
Thomas Li's user avatar
1 vote
0 answers
76 views

Add in Remote event receiver for sharepoint permission issue

I have trying to debug a remote event receiver , I have already published to azure.Now when i launch the app in debug mode even after logging in one more window pops up eventhough i have given ...
Winston Pinto's user avatar
0 votes
1 answer
23 views

How to add a reference to an EventReceiver back to SPLIst

I am using SP2013 On Prem. I use a third party solution that deploys custom lists to a site when activated. I need to remove the SPListItem ItemDeleting event receiver from this list, delete some ...
Arale's user avatar
  • 61
0 votes
1 answer
173 views

Ho to verify if event receiver is custom or default in share point 2013

I have requirement to get all the list of event receiver names(Not Default) in a share point 2013 site which are custom. Kindly guide me on identifying the custom receivers only. Thanks in advance! ...
Kailash Sahoo's user avatar
0 votes
1 answer
46 views

Are event receivers supposed to handle events of editing the list itself?

I just noticed that our list item event receivers are running when we are updating the list itself, like changing the description or the title. I thought these should only trigger when modifying list ...
Alex's user avatar
  • 137
1 vote
1 answer
56 views

Login name of current user by JSOM

I have a SPFeatureReceiver that adding to calendar item new button in ribbon: SPUserCustomAction getTheTerm = list.UserCustomActions.Add(); getTheTerm.CommandUIExtension = $@" <CommandUIExtension&...
Karol Kozłowski's user avatar
1 vote
1 answer
38 views

SharePoint 2013 C# Event reciever choose specific template from document library

I have a document library with multiple content types of word templates. In my event receiver I need to choose the right template based on a field of the modified/created list item. Any ideas how to ...
Yossi Alfia's user avatar
1 vote
2 answers
51 views

Copy Custom list content from one site to another site in same site collection

I have two different sites in same site collection but two sites language is different I created two custom lists in both sites with same number of site columns and datatypes but display name of site ...
adilahmed's user avatar
  • 2,953
0 votes
1 answer
72 views

How detect saving conflict in synchronous event receiver?

I have the following program. I've developed a synchronous event receiver (ItemUpdating) which is executed when a list item is being changed. I've run into the situation where the code in my event ...
Andreas's user avatar
  • 619
0 votes
1 answer
159 views

powershell does not fire "System.Reflection.Assembly.Load" in the event receiver

There is a problem with Enable-SPFeature command in case of having an event receiver in the feature. Feature Activated event is not fired. If I enable the feature manually everything works well. So, ...
Imen Turki's user avatar
  • 2,183
0 votes
2 answers
138 views

Improving performance for the Create/Copy files and folders (using code) inside our large document library

We have a SharePoint 2013 on-premises team site and we have a document library which have around 29,000 +++ items, and those files are structured under around 4,000 folders and sub-folder. now inside ...
John John's user avatar
0 votes
2 answers
143 views

Change the permission of all the files in a Document Set of a Document Library to Read-Only

I've got a document library and I want to change the permission of each file present in a particular document set (say Office Documents) to Read-Only when an item is Updated in a List (say List A). ...
Samrat Guha's user avatar
0 votes
1 answer
466 views

Updating List item from Event Receiver of another List

According to my requirement, I've 2 Lists within the same site List A and List B. Below are the columns in List A: User [PeoplePicker], City [dropdown (2 choices)], Company [dropdown (5 choices)], ...
Samrat Guha's user avatar
0 votes
1 answer
107 views

Accessing the items of other List through Event receiver of a List

I have two lists "List A" and "List B" List B has columns: Color [Single line of text] Description [Multiple lines of text] and now how can I get the "Color" and "Description" of the second Item ...
Samrat Guha's user avatar
1 vote
0 answers
113 views

How to move a file programmatically and preserve full version history (including users!)?

I have a document approval system that works something like this: User uploads a document to one library, fills out metadata. Approval process begins, workflows are fired to send out notification ...
Dylan Cristy's user avatar
  • 12.6k
0 votes
1 answer
1k views

The property or field 'ItemCount' has not been initialized. It has not been requested or the request has not been executed

I have the following code inside our server-side event receiver, the code should connect to a sharepoint online list and get the total number of items, here is the code:- try { currentItem[...
John John's user avatar
1 vote
1 answer
124 views

SPSecurityEventReceiver - when user is added directly to the site

Thanks for your help. I am trying to implement a notification mechanism where in an email is sent to the site owner when a user is added. This works great with SPSecurityEventReceiver. However, the ...
tariq butt's user avatar
0 votes
1 answer
73 views

Get SPField real DisplayName in timer job

I wrote two event revicer. On base on Web scope - this frature creat page and shom on them all list field by their display name, user select interesting to him field and can they use in mail template. ...
Karol Kozłowski's user avatar
0 votes
2 answers
221 views

Updating document library column when document in checked out

I am working on one small project on SharePoint online(E3), requirement is as per below. Whenever any user check out the document, the document library column "isApproved" should be set to "No" one ...
Umang Soni's user avatar
1 vote
1 answer
249 views

Item updated event receiver not firing when workflow updates the list item

I have an event receiver on an item updated event, when i manually update the list item, the event receiver is firing and calling the method, but when i update the list item through workflow step,when ...
user6621250's user avatar
0 votes
1 answer
399 views

Trigger azure function on list created event - SharePoint Online

We want to trigger an azure function whenever a new list is created in any site collection in our tenant. So far, we have found webhooks limited to specific list only. In On-prem env, we can use ...
Deepmala's user avatar
  • 1,857
0 votes
2 answers
583 views

Get item URL from SharePoint ItemAdding Event receiver

I have a sharepoint list with the folders option enabled. My goal is to save the items only inside the folders so that I could grant unique permissions on the folder rather than the item itself. In ...
Adrian Ganea's user avatar
1 vote
0 answers
29 views

Send mail in list event receiver work only for site owners

I have simple event receiver start after save item, do something and send mail, there is part of code: SPSecurity.RunWithElevatedPrivileges(delegate () { MailMessage mailMessage = new MailMessage(); ...
Karol Kozłowski's user avatar
1 vote
1 answer
43 views

Deploying Event Reciever

I Know that event receiver should be deployed as a sandbox solution. But what if I deploy it as a farm solution. Is there any negative impact or not.
Arwa's user avatar
  • 135
1 vote
1 answer
123 views

Permission change event in SharePoint

I am working on one solution where, I need to track changes over permission for any documents under selected sites. If I do crawl to each document I will ofcourse will get the updated permission, but ...
Nilesh Pasalkar's user avatar
1 vote
1 answer
16 views

Looking for advice on where to start with event receivers

I am working on a solution that will require to detect when a page is created on prem (sharepoint 2016) and then use information from the page to create a list item online (o365 sharepoint) My ...
Yeti Byte's user avatar
0 votes
1 answer
198 views

How to update list item column value in ItemAdded event receiver and get the updated value in the same event?

SP2016 event receiver: I have a requirement that on the itemAdded event I have to get the list item id and manipulate it and then keep it in another column. So, on the itemAdded event, I am getting ...
Rishi Jagati's user avatar
0 votes
0 answers
102 views

Getting the Updated Folder Name(FileLeafRef) in ItemUpdated Event Receiver gives me the wrong name

I have an item updated event receiver, when i update a folder name example "TestName" to "TestName Renamed" the properties.listItem["FileLeafRef"] gives me "TestName" and not the updated "TestName ...
Beenee's user avatar
  • 45
0 votes
1 answer
38 views

Event Recevier gets wrong date in itemAdding

I have an event receiver in sharepoint online and it is deployed in azure. so i noticed that it is returning the wrong date and have noticed that it gets the previous day if the time is 12:00AM. ...
Page F.P.T's user avatar
2 votes
0 answers
243 views

Remote Event Receiver on ItemAdding triggered but not updating folder columns

I have a remote event receiver attached to a Document Library. The er is attached to ItemAdding and ItemUpdating. The same code runs on both events to update values in several columns based on the URL ...
Andrew Kennel's user avatar
1 vote
1 answer
105 views

Will event receiver trigger on a SharePoint 2013 on premise site if site collection has been set to read only

I have one SP site where there is an event receiver that gets executed and keeps track of all the information about the documents which are getting downloaded. Business plans to make this site read ...
Kailash Sahoo's user avatar
0 votes
1 answer
74 views

Technique to run an event receiver from console app

There's a imported list with 500.000 items and an event receiver attached to it (itemAdded/Updated). I need to run the event receiver on older items meeting specific criteria but I don't want to ...
XristosK's user avatar
  • 1,012
1 vote
0 answers
23 views

MethodInfo mi object returning null

I am trying to use the CheckInFileByUser in an event receiver so that I can store a user object on the modified by column instead of our service account. I am getting this error mi returns null
Joshua Dominic Sibug's user avatar
0 votes
1 answer
68 views

How to access another Site with event receiver?

I am doing an event receiver which updates a list from another Site, I don't know how to access another site using CSOM
Joshua Dominic Sibug's user avatar
0 votes
1 answer
3k views

Sharepoint Event Receiver Not Firing on ItemAdded

I have set up a local development environment on sharepoint for the sake of testing event recievers. I can build and deploy the following code. However when I deploy the following code it does not ...
dipl0's user avatar
  • 103

1
2 3 4 5
18