2

Recently I am not able to create (remote) event receivers in my SPO environment(s).

  • Create new site
  • Create new list
  • Add event receiver using PnP.PowerShell
Add-PnPEventReceiver -List "test" -Name test -Url "https://webhook.site/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -EventReceiverType ItemAdded -Synchronization DefaultSynchronization

Nothing is triggered on the Listener. Tested on different tenants and with different listeners (webhooke.site and Azure Function). Does anyone else facing this issue?

1 Answer 1

3

So, finally figured this one out. It seems like modern authetication is not supported when adding eventrecivers. So using legacy cookie based authentication when connecting using pnp (-UseWebLogin) and everything works fine.

I have not made a deep dive into the issue, so i can not tell if the issue is with PnP or SharePoint..

1
  • 1
    Confirming this issue still exists as of March 2022. Event Receivers get added, but do not fire. This solution worked for me.
    – hamboy
    Commented Mar 18, 2022 at 23:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.