SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.24k stars 1k forks source link

Use of Recycle Bin Libraries: header x-RecycleBinContentAware #8864

Open jbyt1 opened 1 year ago

jbyt1 commented 1 year ago

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

SharePoint REST API

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

Additional environment details

N/A

Issue description

I saw this blog post about the use of the x-RecycleBinContentAware header to be able to iterate over recycle bin items. This'd be useful to be able to find a deleted item by it's previous Unique ID guid.

https://devblogs.microsoft.com/microsoft365dev/improved-api-support-for-working-with-files-in-the-sharepoint-recycle-bin/#comments

However I haven't been able to get this to work and providing the header doesn't provide any additional information. Is this functionality available? Is there an example of this or a sample request?

If not do you have any recommendations of how to lookup a recycle bin item by it's previous Unique ID that was associated to the folder / file.

ghost commented 1 year ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

jbyt1 commented 1 year ago

Keeping the post alive. Any update on this question + example? Thanks