Malik_Abdul_8942

Reverting multiple items to versions before a set date

Discussion created by Malik_Abdul_8942 on Mar 31, 2017
Latest reply on Apr 1, 2017 by Wolfgang_Brueckler_1288

Question:

For a client or a folder in client, how do I revert all objects in a client as of 03/30/2017? Is there a backup which I can leverage?

I know we can revert individual object using the version management table. However, I need to revert all the objects in the client or folder under a client. How do I achieve the same?

If anyone has any input or has already accomplished something similar, we’d love to hear from you – please let us know below!

Best regards,

 

Solution:

In theory you could use the java api to do this, and here is the steps it would follow:


 

  1. Run a client or Folder wide search for all objects (name=*)

  2. For each Object Found:

    1. Extract the versions available

    2. Check if there is a version for the Date we want to revert back to

    3. Decide what to do if there is no such a version

    4. Decide what to do if there is more than one version for that day

    5. Commit the changes


Outcomes