Retrive delete page item details of sharepoint

Rajendra Sonawane 41 Reputation points
2022-11-10T09:17:38.853+00:00

Hi Team,
I am trying to delete LINK or PAGE from Site Page, when I run change query (api/web/lists/getbytitle('Site Pages')/getChanges?query={'__metadata':{'type': 'SP.ChangeQuery'}, 'Item':true, 'Add':true, 'Update':true, 'Restore':true, 'DeleteObject':true,'Rename':true) .

The above query run successfully and return only few attributes like unique Id, List id, site Id or item id but this details does not help weather the user delete LINK or PAGE.

Even I tried to get the Item details using /_api/web/lists/getbyTitle('Site Pages')/items(%s) but this query return only id and all other attributes are null which will not help weather the user delete the LINK or PAGE.

Is there any API which help to sort out this issue.

Regards,
Rajendra Sonawane

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
Microsoft 365 and Office | SharePoint Server | Development
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,471 Reputation points Microsoft External Staff
    2022-11-11T06:30:23.157+00:00

    Hi @Rajendra Sonawane
    When a item is deleted, the item is deleted in SharePoint source. The action has a very limited number of outcomes and they are not very comprehensive. I feel regretful to inform you that it turns out to be a by-design one.

    And I noticed that some end users have also proposed the same request, it is highly recommended that you can vote this ticket. Many features of our current products are designed and upgraded based on customers’ feedback. With requirements like this increase, the problem may well be released in the future. Thanks for your understanding.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.