Forum Discussion
Toby Statham
Jul 13, 2020Brass Contributor
Changes returned when folder deleted using ChangeQuery and GetChanges in CSOM
Have a folder in a SharePoint Document Library that has 3 files in it. When I delete the folder, I'm getting one change returned in the GetChanges function. It is a ChangeItem related to the dele...
Kannibala
Sep 28, 2022Copper Contributor
Hi
How to get the filename of deleted file in sharepoint.
if (change is ChangeItem)
{
ListItem modifiedItem = changeList.GetItemById((change as ChangeItem).ItemId);
cxt.Load(modifiedItem);
cxt.ExecuteQuery();
}
This fails when the the file is deleted