Page 1 of 1

How do I get checked out files information?

Posted: Wed Jul 13, 2016 2:18 am
by Tanguy
I want to get the information of files that are checked out.
The code below loops through each file of checkouts.

Problem: the only (file) properties I can access are FileId and CheckOutUsers.

Expectation: I need to get File Name and additional info if available.

Code: Select all

VaultClientCheckOutList chList = ServerOperations.ProcessCommandListCheckOuts();
foreach (var item in chList.Cast<VaultClientCheckOutItem>().ToList())
{
   list.Add(item.FileID.ToString());
}

Re: How do I get checked out files information?

Posted: Wed Jul 13, 2016 9:04 am
by jclausius
Take a look at the array of VaultClientCheckOutItem.VaultCheckOutUser[]. Hopefully the RepPath property of the VaultCheckOutUser gives you what you need.

Re: How do I get checked out files information?

Posted: Thu Jul 14, 2016 12:47 am
by Tanguy
Thank you Jeff
That is exactly what I was looking for. ;)

Re: How do I get checked out files information?

Posted: Thu Jul 14, 2016 7:06 am
by jclausius
Your welcome.