Page 1 of 1

Difference between Folder Versions details

Posted: Fri Jun 20, 2008 9:38 am
by Aestros
I have a question about Folder Versions details.

When I go into your client application,
do a "Show History" on a folder,
I change only "View folder history by item" for "View folder history by version".
Click OK.

It brings me to the list of version for the selected folder.
I choose a version and then click "Details".
It shows me what happened, everything is fine.

Now, with the API.
I connect myself to vault server with the same account.
Then I call ServerOperations.ProcessCommandHistory([lotsOfParameters]);
I use the same folder with the same version as I used in your client.
But the API sometimes return me 0 VaultHistoryItem.

What am I doing wrong ?
Is there a property I need to set to the connection to receive the same information as your client program ?

[example of my call in C#]
ServerOperations.ProcessCommandHistory("$/folderToGet",true,DateSortOption.asc,null,null,VaultLib.VaultDate.EmptyDate().ToString(),VaultLib.VaultDate.EmptyDate().ToString(),null,null,4,4,0);
[end of example]

Thanks !

Posted: Fri Jun 20, 2008 10:04 am
by jeremy_sg
Look at the ProcessCommandVersionHistory command in ServerOperations.

Posted: Fri Jun 20, 2008 11:04 am
by Aestros
I tried ProcessCommandVersionHistory but it return the list of all the version of the folder.
What is not working is when I try to get the details about a selected version in the list returned by ProcessCommandVersionHistory.

Details for version #4 in Vault Client application - 5 details.
Details for version #4 in API with ProcessCommandHistory - 0 detail.

Posted: Fri Jun 20, 2008 11:10 am
by jeremy_sg
Oh, I see now, To get the details for the transaction, call ProcessCommandTxDetail with the TxID.

Posted: Fri Jun 20, 2008 11:26 am
by Aestros
It seems to work now !
Thanks for the fast answer. :)