Programmatically restore an item

Vote:
 

Hi,

I am currently working on episerver cms 10.

We have archived all the news in a folder under root page.

To archive the news in a folder we have created a job.

we need to give a functionality  to restore an item so that it will go back to its original location as we have in recycle bin.

Please can anyone help to give such functionality to restore an item.

Thanks in advance !

#196331
Edited, Aug 27, 2018 10:47
Vote:
 

If you are already programatically changing the location of the content item, why not include a ContentReference property in the ContentType to store the "Archived From" location? If you populate this as you archive the item, you will know where it was originally.

#196348
Aug 28, 2018 0:51
Vote:
 

Thanks Marcus

#196905
Sep 16, 2018 15:22
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.