Hi,
I know that when an item is restored from the recycle bin, the ItemAdded event is fired. However, how can i detect if the item added comes from the recycle bin or if it is a new file.
Thanks
Hi,
I know that when an item is restored from the recycle bin, the ItemAdded event is fired. However, how can i detect if the item added comes from the recycle bin or if it is a new file.
Thanks
You could check the Created Date of the item. Items from the Recycle bin should have a previous created date.
Items in the recycle bin have a DeletedDate that may be available in the properties.BeforeProperties
If you want detect it manually, then check the property of the document: there created data is different. For a document even if it was thrown into recycle bin the created data is the same. If you want do it through kind of workflow then you can set property as a benchmark. more detail please find it yourself.