Skip to main content
Share Your Experience: Take the 2024 Developer Survey
11 votes

SPO Remote Event Receiver is not working properly

Could you please check as if your client id is expired or not. Generally this error can be found when the Client Secret Id got Expired. To get the end date of when the client secret will expire you ...
Md. Tahmidul Abedin's user avatar
8 votes
Accepted

When to use Server side event receivers Versus using Remote event receivers?

Answering your 4 questions: Differences Remote Event Receiver (RER) - A provider hosted app is must, which means you need additional infra. Apparently, as pointed out by Mihail-Florin Popa, it is ...
AmitWiki's user avatar
  • 1,029
5 votes

Remote Event receiver using provider hosted app

If you are finding it difficult to debug your remote event receiver, most probably you would be using an incorrect connection string to connect to the Microsoft Azure Service Bus. Visual Studio ...
Aakash Maurya's user avatar
5 votes

When to use Server side event receivers Versus using Remote event receivers?

At first, Remote event receivers are mainly introduced for cloud or office 365 environment (SharePoint Online) where the core logic will run in an hosted environment outside of SharePoint Sites and ...
kesava's user avatar
  • 2,176
5 votes

Remote Event receiver ItemAdded and ItemUpdated issue

It's a normal behavior, where You have set EventType to ItemAdded receiver.EventType = EventReceiverType.ItemAdded; Then in the next line, the EventType is set (overwrite) to ItemUpdated again! ...
Mohamed El-Qassas MVP's user avatar
5 votes

Remote Event receiver ItemAdded and ItemUpdated issue

Attch both ItemAdded & ItemUpdated seperately. var lstJob = clientContext.Web.Lists.GetByTitle("LISTNAME"); clientContext.Load(clientContext.Web); clientContext.ExecuteQuery(); OperationContext ...
Vishnu S's user avatar
  • 864
5 votes
Accepted

access another site collection with client ID and client secret

If you want to use client id and secret across site collections, you should add tenant scoped permissions for your app: If you want to register the app once and use it for any site collection, it'...
Sergei Sergeev's user avatar
4 votes

SharePoint 2013 Remote Event Recievers - How Reliable?

You will not be able to capture events on SharePoint in a reliable way for mission critical events. The best you can hope for is to poll the data at intervals for the changes you are looking for. ...
Derek Gusoff's user avatar
  • 8,026
4 votes

How to implement Remote event receiver in sharepoint online?

If you want to create Remote Event Receiver for List on Host Web, the following articles for your reference: Attaching Remote Event Receivers to Lists in the Host Web Remote Event Receiver (RER) for ...
san's user avatar
  • 1,654
4 votes
Accepted

Remove permission on a folder by csom

this worked in my scenario. List companylibrary = clientContext.Web.Lists.GetByTitle(CompanyType); Web site = clientContext.Web; companylibrary.BreakRoleInheritance(...
Keshav Taurah's user avatar
4 votes

Migrating our SharePoint 2013 on-premises farm to an Office 365

Suggestion for your second question, Better to use web-hooks instead of remote event receivers. Web hooks support only asynchronous -ed events (like updated, deleted, etc). Assess the requirements ...
mohd tahir's user avatar
  • 2,406
4 votes

Is it possible to attach existing remote event reciver to newly added document library?

My normal approach for this would be to add a ListAdded remote event receiver to the host web in the AppInstalled event. Now any time a new list is added in the host web your ListAdded remote event ...
Robert Lindgren's user avatar
3 votes

Remove permission on a folder by csom

Use this to break role inheritance and remove all permissions. //method defined by CSOM public virtual void BreakRoleInheritance(bool copyRoleAssignments, bool clearSubscopes); //it's use ...
Vainktesh Kumar's user avatar
3 votes
Accepted

SharePoint hosted remote event receiver on check in

Remote Event receivers are hosted as a web service remotely which is possible through only Provider hosted apps in SharePoint 2013 SharePoint hosted apps doesn't allow any objects to be hosted ...
Esaki's user avatar
  • 1,272
3 votes

Is it totally wrong or should be avoided to create farm solutions inside sharepoint 2013 on-premise

Sharepoint add-on is new standard and MSFT encourage all the customer to adopt that one. Main reason (there are many others)is Office 365, if your company want to move Office 365 then you have to ...
Waqas Sarwar MVP's user avatar
  • 56.8k
3 votes
Accepted

Remote Event Receiver in Hostweb

For your question "Is it possible to attach a Remote Event Receiver to a list programmatically?, The answer is YES. Yes it is possible to attach the remote event receiver programmatically. We can ...
Aakash Maurya's user avatar
3 votes

Migrating our SharePoint 2013 on-premises farm to an Office 365

MIGRATION To Migrate the whole site collection with sub-site and contents you need to use the third party tool like share-gate , metalogix etc. However it depends on the size of site collection if ...
Ramesh's user avatar
  • 574
3 votes

SPO: when a document is added in library, then create an item in a different list

One more option you can try would be a workflow on document library. This workflow would trigger on adding / uploading new document and you can insert new item in other list. All the best!!!
Shridhar J Joshi's user avatar
3 votes

Prevent ItemUpdated from firing After ItemAdded Event

You can use AfterProperties, at least in ItemUpdated events. You'll need to sniff the contents of these dictionaries out using the debugger because they're totally not intuitive and as you likely know ...
Derek Gusoff's user avatar
  • 8,026
3 votes

How to debug Remote Event Receiver for Sharepoint Online?

There are two way to debug your RERs: Remote debugging Local debugging Remote debugging is convenient, but it requires a lot of prerequisites: deploy your app in Azure remotely attach from ...
Sergei Sergeev's user avatar
3 votes
Accepted

SharePoint Online Remote Event Receiver and Service Bus issue

Two options: Use the cloud explorer in Visual Studio and "attach debugger" Use a proxy like ngrok. I have a blog post that shows how to do that: https://derekgusoff.wordpress.com/2017/11/08/remote-...
Derek Gusoff's user avatar
  • 8,026
3 votes
Accepted

sharepoint remote event receiver itemDeleting event not firing

If you want to use any of the "-ing" events, then write your codes in ProcessEvent(). ProcessEvent() It handles "Before" events and returns an object to SharePoint that reports on whether it should ...
LZ_MSFT's user avatar
  • 6,219
2 votes

When to use Server side event receivers Versus using Remote event receivers?

In Remote event receiver custom logic is executed outside of Sharepoint runtime If you are sure you move in the future to the cloud use the remote, otherwise use server side. Answer depends on ...
Marek Sarad's user avatar
  • 3,540
2 votes

Is it possible to attach a Remote Event Receiver to my lists

Yes, it is possible. Just handle the event receiver while installing the app by changing the property attribute to true as sown below. And then just write the following code public ...
Trimantra Software Solution's user avatar
2 votes

SharePoint 2013 Remote Event Recievers - How Reliable?

The way we handle it in O365 is kind of a hack and similar to a Timer Job, but it works. We make a C# console application and host it as a web job in Azure, and have the job run every 5 minutes or ...
Spawnbroker's user avatar
2 votes
Accepted

base class for event receivers in sharepoint 2010 & 2013

Yes it's same. SharePoint 2010 Base class URL : https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.speventreceiverbase(v=office.14).aspx SharePoint 2013 Base class URL : https://msdn....
Samir Khimani's user avatar
2 votes
Accepted

Is it totally wrong or should be avoided to create farm solutions inside sharepoint 2013 on-premise

You can still use Farm Solutions in your development. Maybe your customer isn't thinking about migrating to the cloud. Farm solutions are still supported in SharePoint 2016 as well, so I don't see the ...
Mohamed Derhalli's user avatar
2 votes

Is it totally wrong or should be avoided to create farm solutions inside sharepoint 2013 on-premise

In short, by now (December 2016), official MS guideline is "Use new add-in model whenever it's possible". In reality, you're absolutely correct, new add-in model in most cases requires a lot more ...
Sergei Sergeev's user avatar
2 votes
Accepted

How to get the FileRef property of a document library file with CSOM

var fileName = "Document.docx"; ClientContext clientContext = new ClientContext("http://sitecollectionurl"); Microsoft.SharePoint.Client.List spList = clientContext.Web.Lists.GetByTitle("Test"); ...
Gautam Sheth's user avatar
  • 30.9k
2 votes
Accepted

How to trigger some events based on creation of a new list item?

Remote Event Receivers seem to be a solution. While attaching RER you have to specify EventType - ItemAdded should be the one you are looking for. Following article describes how you can attach RER to ...
rafter13's user avatar
  • 570

Only top scored, non community-wiki answers of a minimum length are eligible