Message 1 of 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How do I do this?
I currently have the file checked out. I want my iLogic to get the "Copy of file..." comment from the current revision, but as far as I can tell, <FileIteration>.comment either fails to get anything, or it gets the comment from the placeholder revision that was created when I checked out the file.
Is there no way to get the comment? Below is my code:
Function GetVaultState(ByRef LastCheckInDate As DateTime) As VDF.Vault.Currency.Entities.FileIteration Dim mVltCon As VDF.Vault.Currency.Connections.Connection = VB.ConnectionManager.Instance.Connection If mVltCon Is Nothing Then Throw New System.Exception("Not Logged In") 'Convert File Path to Vault Path Dim VaultPath As String = ThisDoc.PathAndFileName(True).Replace("C:\_VaultWork\", "$/").Replace("\", "/") Dim awsFiles() As AWS.File = mVltCon.WebServiceManager.DocumentService.FindLatestFilesByPaths(New String() {VaultPath }) LastCheckInDate = awsFiles(0).ModDate 'pass the last modified date back to the main code Logger.Info(LastCheckInDate.ToString("MM/dd/yyyy")) ' now I should check that this actually gives the last modified date and not the current date when the file is checked out. Dim mFileIt As VDF.Vault.Currency.Entities.FileIteration = New VDF.Vault.Currency.Entities.FileIteration(mVltCon, awsFiles(0)) Logger.Info(mFileIt.Comment) ' this gives a blank string Return mFileIt End Function
Solved! Go to Solution.