How to get Previous and Next version of File using Vault WebService API

How to get Previous and Next version of File using Vault WebService API

Anonymous
Not applicable
1,891 Views
2 Replies
Message 1 of 3

How to get Previous and Next version of File using Vault WebService API

Anonymous
Not applicable

 

I am using AutoDesk Vault basic 2014 .

 

Let's say we have one file abc.ipt checked in to Vault and it has 5 versions (Not Revision).

 

Using VDF.Vault.Currency.Entities.FileIteration I am getting EntityIterationId, means ID of current file. So is there any method which will give us File.id of its next versions and previous versions ( or FileIteration instance of next and previous version)

 

For example, if we will have ID of 3rd version then we need IDs of its previous version 1, 2 and next version 4, 5 .

 

 

Thanks In Advance.

0 Likes
Accepted solutions (1)
1,892 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Accepted solution

I found solution myself . Hope it will be useful for other users:

 

You need Master Id of the file and using following API you can find all versions of the file.

 

File[] fileVersions = connection.WebServiceManager.DocumentService.GetFilesByMasterId(MASTER_ID);

 

Here MASTER_ID = File Master ID.

 

 

Message 3 of 3

Anonymous
Not applicable

Thanks, this helped me.

0 Likes