Vault Standard and API (dll) Usage

Post your questions regarding using the Vault and Fortress API in your programs.

Moderator: SourceGear

Post Reply
RonGRusk
Posts: 10
Joined: Wed Apr 08, 2015 6:36 am

Vault Standard and API (dll) Usage

Post by RonGRusk » Mon Sep 26, 2016 7:40 am

Trying to figure out how to get a list of changed items in c# (Not in Working Folder Yet) in "$" Root, or subfolder, or single item.

What would be the syntax and return structure/Items?

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault Standard and API (dll) Usage

Post by Beth » Mon Sep 26, 2016 8:46 am

You'll want to perform a history query and you can filter by date to get all historical actions since a certain date.

The second post in this thread asks about folder history, so the responses there should help: http://support.sourcegear.com/viewtopic.php?f=31&t=8020.


Show folder history: http://support.sourcegear.com/viewtopic ... ory#p62664

(Moved your post to the development area. Check here for more API tips: http://support.sourcegear.com/viewforum.php?f=39 )
Beth Kieler
SourceGear Technical Support

RonGRusk
Posts: 10
Joined: Wed Apr 08, 2015 6:36 am

Re: Vault Standard and API (dll) Usage

Post by RonGRusk » Mon Sep 26, 2016 10:41 am

What I want is a delta of What is newer than what currently exists in my working folder, according to Vault's Cache. I don't think its reliable to check Time/Date stamps on local files then compare with history.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Vault Standard and API (dll) Usage

Post by Beth » Mon Sep 26, 2016 1:23 pm

It sounds like what you want is the status of the files like we have in the Vault GUI client, right? When something in Vault is newer than what is on a person's disk, the status becomes Old.

Is that the kind of thing you are looking for?

In the Vault GUI client, there is also an option to do a CRC check to determine status. If the first option isn't it, then is this the option you're looking for?

Another option we have is the Folder Changes Archive that is used to get everything that has changes since a certain date. If this what you want to eventually do?

If none of these fit can you tell me how you are wanting to ultimately accomplish?
Beth Kieler
SourceGear Technical Support

Post Reply