Page 1 of 1

Adding comments when performing operations using Vault API

Posted: Tue Jun 09, 2009 3:30 am
by fryhard
Hey,

We are using the Vault API to automate check in and check out procedures. Everything is currently working find with the application being able to check out, check in, add and update items. The problem that I am faced with is that we would like to add a comment when a task is performed. This would allow us to track operations performed by the application.

Currently I am using code like this to add file to the repository.

Code: Select all

ServerOperations.ProcessCommandAdd(directoryName, fileNames)
Is it possible to add a comment when doing the Add or Checkin.

Thanks

Re: Adding comments when performing operations using Vault API

Posted: Tue Jun 09, 2009 7:29 am
by shannon
Before you call ProcessCommandAdd or ProcessCommandCheckin, set the ServerOperations.client.Comment field. You'll want to set it to empty string after your call.