2 Replies Latest reply on Oct 16, 2014 10:12 PM by Sergio Urra

    Check the number of historysnapshots?

    Sergio Urra

      Hello,

       

      I'd like to know how to implement one of those alternatives:


      a) get the total number of History Snapshots.

      b) check if a specific snapshot exists.

      c) Jump the error message if the snapshot doesn't exist and stop the script execution. See the piece of code.

       

      In this piece of code I get an error if SnpS name doesn´t exist:

       

        ref1.putName(cTID('SnpS'), "Snapshot Final");

        desc1.putReference(cTID('null'), ref1);

        executeAction(cTID('slct'), desc1, dialogMode); //ERROR 8880 - the objet snapshot "Snapshot Final" is not currently available.

       

      Any help will be appreciated.

       

      Cheers