My scenario: i want to create a spfx web part that uses a rest API that will query all the alerts throughout the whole site collection for the current user.

I want to know which API to use and better if there already is a sample i can use. I am new to spfx and am building this web part using react


I believe that there is no REST API that could manage nor read alerts whatsoever. Also alerts are per site (web) so it would require to iterate through all subsites which could take really long time to load.

This functionality was introduced in CSOM at January 2017. So long time there was no way how to manage alerts in the cloud and I don't think that it will change in near future.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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