10 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 ...
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 ...
  • 1,021
6 votes

Do event receivers fire when list items are added or updated using REST or CSOM

Yes event receiver do get fired if item is updated from client object model code. This is how I tested it. Created a custom list and added a text column named "Quantity" to it. Then created a ...
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 ...
  • 2,176
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 ...
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! ...
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 ...
  • 854
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'...
4 votes
Accepted

Can not add value in List property bag using CSOM

How to set property in List PropertyValue.FieldValues is read-only property, the following example demonstrates how to set property for a List: var list = ctx.Web.Lists.GetByTitle(listTitle); var ...
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. ...
  • 7,808
4 votes
Accepted

Can I use a remote event receiver on a non-app custom list in SharePoint Online?

You want to attach a remote event receiver to a list in the host web? You have to run some code in order to do that. It can be done from an App Installed event, through your site provisioning process, ...
  • 7,808
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 ...
  • 1,624
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(...
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 ...
  • 2,386
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 ...
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 ...
3 votes
Accepted

Remote Events -- ItemEventProperties.BeforeProperties is always empty?

You can remember that BeforeProperties and AfterProperties are different for Sync. and Async. events BeforeProperties and AfterProperties behavior is different for List Items and Library Items If ...
  • 1,591
3 votes

Remote Event Receiver not firing on App List (or any list)

You should configure service bus to debug remote event receivers. Please read my two full step-by-step articles (with information about service bus configuration) about Remote Event Receivers in ...
  • 778
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 ...
  • 1,254
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 ...
  • 56.8k
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 ...
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 ...
  • 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!!!
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 ...
  • 7,808
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 ...
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-...
  • 7,808
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 ...
  • 6,159
2 votes
Accepted

Get before properties in ItemUpdated event via CSOM in a RER

No, there are no before properties available in asynchronous events. Unfortunately, even in the syncronous event itemupdating there are no before properties. This is where remote event receivers ...
2 votes

Can't delete remote event receiver using custom code

If you added Remote EventReceiver within "Service bus", then you will not be able to remote it. The only solution is delete list (if it's list specific receiver). You can read my article here: http://...
  • 778
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 ...

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