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 ...
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 ...
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 ...
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 ...
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
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 ...
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.
...
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 ...
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
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 ...
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 ...
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
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 ...
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 ...
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-...
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 ...
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 ...
2
votes
Accepted
Provision/Upload file from sharepoint 2013 App to host web
Solved it following way
File added in a folder of Web App instead of Module. Then the file path becomes
var filePath = HostingEnvironment.ApplicationPhysicalPath + @"Script\at-iframe-listener.js&...
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 ...
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....
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 ...
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 ...
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");
...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
remote-event-receiver × 206sharepoint-online × 142
development × 51
sharepoint-addin × 30
csom × 30
provider-hosted-app × 27
event-receivers × 18
azure × 18
office-365 × 17
2013 × 14
document-library × 8
client-object-model × 7
visual-studio × 6
azure-service-bus × 5
sharepoint-enterprise × 4
permissions × 4
office-365-developer × 4
debugging × 4
item-updating × 4
migration × 3
sharepoint-on-prem × 3
folder × 3
file × 3
event-handlers × 3
wcf × 3