Hi Marc,
Thank you for your reply.
I have just tried that
$().SPServices({ operation: 'DeleteAlerts', webURL: 'https://' + window.location.host + L_Menu_BaseUrl, async: false, IDs: ['{1C364549-0080-4200-B9B1-57C80DB401FD}'], completefunc: function(xData, Status) {var delErr = $(xData.responseXML).find('DeleteFailure').text();if (!!delErr[0] && typeof console == 'object'){ console.log(delErr); } } });
Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><DeleteAlertsResponsexmlns="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/"><DeleteAlertsResult><DeleteFailure><ID>{1C364549-0080-4200-B9B1-57C80DB401FD}</ID><Error>ServerError</Error></DeleteFailure></DeleteAlertsResult></DeleteAlertsResponse></soap:Body></soap:Envelope>
If I run the same code with one of my alerts I get this Response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><DeleteAlertsResponsexmlns="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/"><DeleteAlertsResult></DeleteAlertsResult></DeleteAlertsResponse></soap:Body></soap:Envelope>
It also works with multiple Ids (my alerts), in the form
['{id GUID 1}','{id GUID 2}','{id GUID 3}']
Does it mean that DeleteAlerts is only set on the current user?
This would make the Web Service pretty useless. And with only /_layouts/sitesubs.aspx left for managing alerts - for one user at a time - managing alerts on Sharepoint proves incredibly time consuming, and very, very boring and frustrating.
This would make the Web Service pretty useless. And with only /_layouts/sitesubs.aspx left for managing alerts - for one user at a time - managing alerts on Sharepoint proves incredibly time consuming, and very, very boring and frustrating.
Should I just surrender to it?
Thank you,
vinz