none
Create Alert for changes on SharePoint Modern Site Page using ReST API or Graph API RRS feed

  • Question

  • Hello!

    I am trying to create an alert (Out of the Box alert) on any change/updates for a SharePoint Page from Site Pages using Rest API but with no luck. Tried endpoint with a POST request with parameters

    _api/web/Alerts/Add

    {
    'alertCreationInformation':{ 
    	'__metadata':{'type': 'SP.Alert'},
    	'AlertFrequency':0,
    	'AlertTemplateName': 'SPAlertTemplateType.WebPageLibrary',
    	'AlertType':1,
    	'AlwaysNotify':false,
    	'DeliveryChannels':1,
    	'EventType':-1,
    	'Filter': '',
    	'ItemID':22,
    	'Status': 0,
    	'ListID':'{fcf33d65-fada-4842-8d58-7401e3563f7d}',
    	'Title':'Page Alert from API', 
    	'UserId':6
    }
    }

    Have tried the property alertCreationInformation

    https://s-kainet.github.io/sp-rest-explorer/#/_api/web/Alerts/Add

    https://s-kainet.github.io/sp-rest-explorer/#/entity/SP.AlertCreationInformation

    Property alertCreationInformation does not have property to pass in the PageITEM id or URL, user data.

    Able to get all the alerts the user subscribed by a GET call to _api/web/Alerts
    Could you please help. If there is a endpoint with Graph API, it should also be OKAY. Thanks in advance.




    • Edited by ashiqf Friday, October 25, 2019 7:44 AM
    Thursday, October 24, 2019 2:04 PM