Event Receiver in SharePoint 2019

%3CLINGO-SUB%20id%3D%22lingo-sub-1287895%22%20slang%3D%22en-US%22%3EEvent%20Receiver%20in%20SharePoint%202019%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1287895%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Guys%2C%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20using%20SharePoint%202019%20on-prem%20%2C%20Is%20it%20a%20good%20idea%20to%20use%20event%20receivers%20or%20it%20is%20going%20to%20depreciate%20from%20SharePoint.%20I%20am%20asking%20because%20I%20have%20created%20an%20event%20receiver%20but%20with%20modern%20experience%20and%20it%20is%20working%20as%20expected.%20But%20some%20weird%20things%20like%20it%20is%20not%20showing%20via%20Powershell.%26nbsp%3B%20%26nbsp%3BI%20have%20created%20it%20for%20Item%20added%2C%20Item%20adding%20or%20Item%20Updated.%20But%20nothing%20is%20showing.%20And%20also%20it%20is%20triggering%20for%20other%20lists%20and%20library%20even%20I%20am%20using%26nbsp%3B%26nbsp%3BListUrl%3D%22Lists%2Flistname%22%20and%20correct%20scope.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20my%20question%20is%20Is%20is%20good%20practice%20to%20use%20event%20receiver%20in%20SharePoint%202019%20on-prem%20modern%20SharePoint%20site%20or%20someone%20can%20also%20help%20me%20to%20understand%20the%20why%20event%20receiver%20is%20weird%20in%20SharePoint%202019%20modern%20site.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1287895%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Server%202019%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1288099%22%20slang%3D%22en-US%22%3ERe%3A%20Event%20Receiver%20in%20SharePoint%202019%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1288099%22%20slang%3D%22en-US%22%3EI'm%20not%20aware%20of%20any%20issues%20%2F%20dependencies%20of%20Event%20Receivers%20and%20modern%20experiences%20in%20SP%202019.%20AFAIK%2C%20Event%20Receivers%20should%20work%20in%20the%20same%20way%2C%20no%20matter%20if%20you%20are%20using%20the%20classic%20or%20modern%20experience.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1308051%22%20slang%3D%22en-US%22%3ERe%3A%20Event%20Receiver%20in%20SharePoint%202019%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1308051%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F60%22%20target%3D%22_blank%22%3E%40Juan%20Carlos%20Gonz%C3%A1lez%20Mart%C3%ADn%3C%2FA%3E%26nbsp%3BEven%20I%20am%20anticipated%20the%20same%2C%20But%20now%20I%20am%20trying%20to%20create%20an%20event%20receiver%20on%20web%20level%20and%20restricted%20only%20to%20trigger%20on%20a%20particular%20list.%20But%20I%20don't%20know%20why%20it%20is%20triggering%20to%20all%20the%20lists%20and%20libraries%20across%20the%20site.%26nbsp%3B%20I%20have%20given%20list%20URL%20and%20set%20the%20scope%20as%20web%20in%20element.xml%20also%20for%20the%20feature%20I%20have%20given%20the%20scope%20web%20but%20still%2C%20it%20is%20not%20working%20as%20needed.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hello Guys, 

I am using SharePoint 2019 on-prem , Is it a good idea to use event receivers or it is going to depreciate from SharePoint. I am asking because I have created an event receiver but with modern experience and it is working as expected. But some weird things like it is not showing via Powershell.   I have created it for Item added, Item adding or Item Updated. But nothing is showing. And also it is triggering for other lists and library even I am using  ListUrl="Lists/listname" and correct scope. 

 

So my question is Is is good practice to use event receiver in SharePoint 2019 on-prem modern SharePoint site or someone can also help me to understand the why event receiver is weird in SharePoint 2019 modern site. 

2 Replies
Highlighted
I'm not aware of any issues / dependencies of Event Receivers and modern experiences in SP 2019. AFAIK, Event Receivers should work in the same way, no matter if you are using the classic or modern experience.
Highlighted

@Juan Carlos González Martín Even I am anticipated the same, But now I am trying to create an event receiver on web level and restricted only to trigger on a particular list. But I don't know why it is triggering to all the lists and libraries across the site.  I have given list URL and set the scope as web in element.xml also for the feature I have given the scope web but still, it is not working as needed.