Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Alerts.DeleteAlerts() for users other than current user?

Hi,

I am trying to use DeleteAlerts() to delete all alerts from some lists but I get

'{alertId}ServerError', for any alert which is not my own.

 

I am using this code

$().SPServices({
  operation: 'DeleteAlerts',
  webURL: 'https://'+ window.location.host + L_Menu_BaseUrl;
  async: false,  
  IDs: ids,
  completefunc: function(xData, Status) {var delErr = $(xData.responseXML).find('DeleteFailure').text();if (!!delErr[0] && typeof console == 'object'){
      console.log(delErr);
    }
  }
});	

On the msdn page I see nothing about the method being only available to the current user. I have full control over my subsite, and SPServices webURL is set to that.

 

Anyone knows if I can delete other users alerts using Web Services?

 

Thank you,

vinz

 


Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>