This repository was archived by the owner on Jan 19, 2021. It is now read-only.
Remote Event Receiver not firing when created using App Context #2807
Unanswered
dgtheninja
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I create a remote event receiver using an App Context the endpoint doesn't get called, however when I create the event receiver with a user context it does get called, why is this?
I can list the event receivers and the one I have created is there and looks correct
Example Code
var am = new AuthenticationManager();
using (var cc = am.GetAzureADAppOnlyAuthenticatedContext(siteUrl, ClientId, Tenant, CertificatePath, CertificatePassword))
{
cc.Web.AddRemoteEventReceiver("ListAddedFunction", "https://redacted.ngrok.io/api/ListAddedFunction", EventReceiverType.ListAdded, EventReceiverSynchronization.Asynchronous, false);
}
If I replace the login with
using (var cc = authManager.GetWebLoginClientContext(siteUrl))
then the endpoint is called as expected
Beta Was this translation helpful? Give feedback.
All reactions