The process of building custom applications and tools that interact with Microsoft SharePoint, including SharePoint Online in Microsoft 365.
Hi @Rudy Menjivar ,
Per my research, there is no correlation between RecycleBinItem and ChangeItem/ChangeFolder. I have tested RecycleBinItem.Id by following code.
RecycleBinItemCollection rbiColl = web.RecycleBin;
ctx.Load(rbiColl);
ctx.ExecuteQuery();
foreach (RecycleBinItem rbiItem in rbiColl)
{
var ribid = rbiItem.Id;
Console.WriteLine(rbiItem.Title);
Console.WriteLine(rbiItem.Id);
}
Console.ReadLine();
The RecycleBinItem.Id is a UniqueId differs from ChangeItem.ItemId. And I also tested ChangeItem.UniqueId but with no luck. We are unable to map RecycleBinItem to ChangeItem for their UniqueId is different.
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.